
blog address: http://findnerd.com/list/view/How-to-set-the-Advanced-filters-in-OpenERPOdoo/6144
keywords: Advanced Filters In OpenERP/Odoo, Use Advanced Filters In Odoo
member since: Dec 23, 2015 | Viewed: 59
How to set the Advanced filters in OpenERP
Category: Academics
oddon.png Step-1 Install the web_advanced_filters module. Step-2 After that custmozie .py(Python file) file in web_advanced_filters module: In below example, I have custmozied .py file. You can directly copy the below python code in your .py file. class IrFilters(Model): _inherit = 'ir.filters' _evaluate_before_negate = ['one2many', 'many2many'] def _is_frozen_get(self, cr, uid, ids, field_name, args, context=None): '''determine if this is fixed list of ids''' result = {} for this in self.browse(cr, uid, ids, context=context): try: domain = safe_eval(this.domain) except: domain = [expression.FALSE_LEAF] result[this.id] = (len(domain) == 1 and expression.is_leaf(domain[0]) and domain[0][0] == 'id') return result def _domain_get(self, cr, uid, ids, field_name, args, context=None): ........... Read full blog at -http://findnerd.com/list/view/How-to-set-the-Advanced-filters-in-OpenERPOdoo/6144
{ More Related Blogs }
Academics
Process Modeling in 3D Exterio...
Mar 16, 2016
Academics
dannysalehlaw.com Logo Explain...
Mar 16, 2016
Academics
Unsecured Shopper Loans - Lear...
Mar 16, 2016
Academics
Sophia Loren Quotes...
Mar 25, 2024
Academics
Within Content In relation to ...
Mar 16, 2016
Academics
How to be a Mumbai escort...
Oct 13, 2014