This question has been flagged
2 Replies
1037 Views

Good day everyone,

How could be made possible to search from purchase order tree view the products by barcode?


Apologize, this forum prevents me to share images or urls to them :(












Avatar
Discard
Best Answer

Hi Avash,
if barcode is a field in purchase order_line try ,

<field name="order_line" string="Product" filter_domain="[('order_line.barcode', 'ilike', self)]"/>

Hope it Helps,
Kiran K

Avatar
Discard
Author

Hello Kiran, thanks for reply. barcode is a field in product.template or in product.product.

Then Try,
<field name="order_line" string="Barcode" filter_domain="[('order_line.product_id.barcode', 'ilike', self)]"/>

Author Best Answer

Thanks Kiran, that worked like a charm!!

Avatar
Discard