This question has been flagged

Hi,

I want to color the product_id field in sale order lines when the product category is equal to something but it doesn't work.


I use this code :

<field name="product_id" decoration-info="product_categ_name == 'OUVRAGE'" decoration-warning="product_categ_name == 'FOURNITURES'" attrs=... />


It's working fine on other fields but not on product_id :

https://i.imgur.com/IFzT5E6.png


Any idea ? Thanks in advance!

Avatar
Discard
Best Answer

Hi,

Can you just try the following community app. It's configuration is mentioned in the index

https://github.com/OCA/web/tree/12.0/web_tree_dynamic_colored_field

https://apps.odoo.com/apps/modules/12.0/web_tree_dynamic_colored_field/

Regards

Avatar
Discard
Author

I just want to do it on this field so I would prefer not to install an app.

But i'll look at it !

Any other idea ?