تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
2197 أدوات العرض

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>



الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
مارس 25
1208
0
نوفمبر 24
1434
0
يونيو 24
1501
1
يونيو 24
1986
0
أكتوبر 23
2055