Skip to Content
Menu
This question has been flagged
2 Replies
1194 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
Related Posts Replies Views Activity
3
Dec 24
2367
1
Jul 24
707
1
Jun 24
776
2
Jun 24
898
1
Mar 24
539