Skip to Content
Menu
This question has been flagged
1 Reply
753 Views

hi all , iam a newbie to odoo, iam trying to avoid some products from printing in the report , can anyone help me 


i tried like this 

<t t-if="obj.product_id.name != 'CAR'">

code

</t>


but its didnt work , anyone please help me with this

Avatar
Discard
Best Answer

Hi,

Use the barcode field instead of name, as it is unique it will work.

< t t-if="obj.product_id.barcode != 'barcode'">code

Regards

Avatar
Discard