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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
1610
Views
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>
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Nov 24
|
132 | ||
|
0
Jun 24
|
268 | ||
|
1
Jun 24
|
701 | ||
|
0
Oct 23
|
952 | ||
|
1
Jun 23
|
1510 |