Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
4553 Vizualizări
<xpath expr="//tree" position="attributes">
<attribute
name="decoration-danger">product_id ==</attribute>
</xpath>

In Odoo 12, I would like to pass a value of a certain product id, that i have defined in data.xml and i would like to use self.env.ref('my_module.my_product_id).id  for this equation. This way the order line product would stand out with a red color, the code works if i go for 'product_id == 420' but i cant use a function? Any idea for this solution? Thank you

Imagine profil
Abandonează

Hello Sir. Did you find a solution for this ?

Cel mai bun răspuns

i think you can't do that.

what you can do is give a context to the action, and the action decides which view will be use based on the data stored in the context

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
mar. 22
2433
2
ian. 21
4314
2
iun. 19
3474
0
mar. 24
1145
5
sept. 24
51752