Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
2202 Переглядів

Hello,

I got this situation where I need to hide the values of a description in a particular product.
I just put another selection in Product Type that for this particular product.

Type = consumable, service, unknown and storage product

<field name="product_id"> how to make the product_id values = spaces, instead of the existing product name. 

so that in the report, the value of that particular product is blank. 


Аватар
Відмінити
Найкраща відповідь

Hi William:

You can use the following syntax to conditionally print the product description.

NOTE: You will probably need the variable prefix used for the looping like doc.type or o.type depending on which report you have modified.

<t t-if="doc.type in ('consumable', 'service')">
<span t-field="doc.product_id"/>
</t>



Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
бер. 25
1214
0
лист. 24
1440
0
черв. 24
1516
1
черв. 24
1990
0
жовт. 23
2058