Hide discount on reports

develop
Ahmed Aly 2018-04-11 15:28:19 +02:00
parent 8532166c1e
commit 1c38e263e4
2 changed files with 8 additions and 2 deletions

View File

@ -160,7 +160,10 @@
<span t-field="invoice_line.name"/>
</td>
<td class="text-right">
<span t-field="invoice_line.price_unit"/>
<span t-if="invoice_line.hide_discount"
t-field="invoice_line.price_reduce"/>
<span t-if="not invoice_line.hide_discount"
t-field="invoice_line.price_unit"/>
</td>
<td class="text-right" t-if="discount_is_set">
<span t-if="not invoice_line.hide_discount"

View File

@ -122,7 +122,10 @@
</t>
</td>
<td rowspan="2" class="text-right">
<span t-field="order_line.price_unit"/>
<span t-if="order_line.hide_discount"
t-field="order_line.price_reduce"/>
<span t-if="not order_line.hide_discount"
t-field="order_line.price_unit"/>
</td>
<td rowspan="2" class="text-right" t-if="discount_is_set">
<span t-if="not order_line.hide_discount" t-field="order_line.discount"/>