Showing posts with label domain in view. Show all posts
Showing posts with label domain in view. Show all posts

Wednesday, November 17, 2010

Domain's value depending on condition

In OpenERP view depending on condition value for the right argument can be provided.

domain="[('product_tmpl_id.categ_id.name', 'ilike',
(parent.category in ('RM', 'PM') and parent.category) or
(parent.category == 'OM' and 'Other') or
'')]"