Initial commit: Odoo 18.0-20251222 extra-addons
This commit is contained in:
35
account_global_discount/views/report_account_invoice.xml
Normal file
35
account_global_discount/views/report_account_invoice.xml
Normal file
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<template id="report_invoice_document" inherit_id="account.report_invoice_document">
|
||||
<xpath expr="//t[@t-call='account.document_tax_totals']" position="before">
|
||||
<t t-if="o.global_discount_ids">
|
||||
<tr>
|
||||
<td>
|
||||
<strong>Subtotal w/o disc.</strong>
|
||||
</td>
|
||||
<td class="text-end">
|
||||
<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-end">
|
||||
<span
|
||||
t-field="o.amount_global_discount"
|
||||
t-options='{"widget": "monetary", "display_currency": o.currency_id}'
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
</t>
|
||||
</xpath>
|
||||
</template>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user