Update of Snippet
This commit is contained in:
1 parent
b06b5f13d1
commit
a0a79f27ca
1 file changed
+3
-5
@@ -1,21 +1,19 @@
|
||||
<data inherit_id="account.report_invoice_document" priority="50">
|
||||
<xpath expr="//div[@id='total']//table/t[1]" position="before">
|
||||
<!-- Version 16
|
||||
<xpath expr="//div[@id='total']//table/t[1]" position="before">
|
||||
-->
|
||||
|
||||
<t t-set="net_value_of_goods" t-value="sum(o.invoice_line_ids.filtered(lambda l: l.product_id.type == 'product').mapped('price_subtotal'))"/>
|
||||
<t t-set="additional_expenses" t-value="sum(o.invoice_line_ids.filtered(lambda l: l.product_id.type != 'product').mapped('price_subtotal'))"/>
|
||||
<tr>
|
||||
<!-- de_CH: Nettowarenwert -->
|
||||
<td>Net Value of Goods</td>
|
||||
<td class="text-right">
|
||||
<td class="text-end">
|
||||
<span t-esc="net_value_of_goods" t-options="{'widget': 'monetary', 'display_currency': o.currency_id}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<!-- de_CH: Zusatzaufwendungen -->
|
||||
<td>Additional Expenses</td>
|
||||
<td class="text-right">
|
||||
<td class="text-end">
|
||||
<span t-esc="additional_expenses" t-options="{'widget': 'monetary', 'display_currency': o.currency_id}"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in new issue
Block a user