Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
In OpenERP V7, the advanced search filter is not working.
For example, if I want to select all customers with "Customer Payment Term is equal to Cash" or "Customer Payment Term contains Cash", the result shown is always the same. The filter is not working at all.
Same effect when trying to filter on a Sale Pricelist. Whatever is filled out in the filter, always all customers are shown.
How to solve this?
we can implement advance search for sale pricelist by defining a fnct_search .
'property_product_pricelist': fields.property( 'product.pricelist', type='many2one', relation='product.pricelist', domain=[('type','=','sale')], string="Sale Pricelist", view_load=True,fnct_search=_search_prodt_price, help="This pricelist will be used, instead of the default one, for sales to the current partner"),
Like this we can define this function
def _search_prodt_price(self, cr, uid, obj, name, args, context=None):
return must be in the format return [('id','in',[1,3,5])]
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 5/15/13, 1:32 PM|
|Seen: 2592 times|
|Last updated: 3/16/15, 8:10 AM|