forked from OCA/account-invoicing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreport_account_invoice.xml
35 lines (35 loc) · 1.42 KB
/
report_account_invoice.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<template id="report_invoice_document" inherit_id="account.report_invoice_document">
<xpath expr="//div[@id='total']/div/table/tr[1]" position="before">
<t t-if="o.global_discount_ids">
<tr>
<td>
<strong>Subtotal w/o disc.</strong>
</td>
<td class="text-right">
<span
t-field="o.amount_untaxed_before_global_discounts"
t-options='{"widget": "monetary", "display_currency": o.currency_id}'
/>
</td>
</tr>
<tr style="border-bottom:1px solid #dddddd;">
<td>
<strong>Global Discounts</strong>
<br />
<t
t-esc="'→'.join(['{:.2f}%'.format(x.discount) for x in o.global_discount_ids])"
/>
</td>
<td class="text-right">
<span
t-field="o.amount_global_discount"
t-options='{"widget": "monetary", "display_currency": o.currency_id}'
/>
</td>
</tr>
</t>
</xpath>
</template>
</odoo>