This question has been flagged
1551 Views

Hi everyone,


i've added a field "customer_reference" in the model product.pricelist.item

I need in the product.template_search view, to add a search field to search a product by a customer reference

I tried something like this :

<field name="pricelist_id" string="Cust. Ref." domain="[('pricelist_id.item_ids.customer_reference','ilike',self)]"/>


But if the search field is displayed, it doesn't work !

I think this solution works only for a one2many field, not for a many2one


If someone could help me for that

Vincent

Avatar
Discard