print 'default_code' according to setting in 'material_type'

(offer/order/invoice)
develop
Andreas Osim 2018-09-04 15:57:54 +02:00
parent 6605232d1d
commit 44a67edb19
2 changed files with 2 additions and 2 deletions

View File

@ -171,7 +171,7 @@
</td>
<td class="text-right"/>
<td class="text-left">
<t t-if="invoice_line.product_id.default_code">
<t t-if="invoice_line.product_id.default_code and invoice_line.product_id.material_type_id.print_default_code">
<strong>
<span t-field="invoice_line.product_id.default_code"/>
</strong>

View File

@ -146,7 +146,7 @@
<td class="text-right">
</td>
<td rowspan="2" class="text-left">
<t t-if="order_line.product_id.default_code">
<t t-if="order_line.product_id.default_code and order_line.product_id.material_type_id.print_default_code">
<strong>
<span t-field="order_line.product_id.default_code"/>
</strong>