
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: 66
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
"Unleashing the Power of Digit...
Oct 19, 2023
Academics
ZONATOTO : Situs Slot Gampang ...
Aug 4, 2024
Academics
Top Medical scribing interview...
Dec 17, 2022
Academics
What you Should Learn about E ...
Apr 29, 2016
Academics
10 Best Platforms For Data Sci...
Sep 12, 2021
Academics
Elevate Your Business with Amr...
Aug 26, 2024