Initial commit: Odoo 18.0-20251222 extra-addons
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<!-- Copyright 2017 ForgeFlow S.L.
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
||||
<odoo>
|
||||
<template id="report_invoice_document" inherit_id="account.report_invoice_document">
|
||||
<xpath expr="//t[@t-set='display_discount']" position="after">
|
||||
<t
|
||||
t-set="display_discount_fixed"
|
||||
t-value="any([l.discount_fixed for l in o.invoice_line_ids])"
|
||||
/>
|
||||
</xpath>
|
||||
<xpath expr="//th[@name='th_discount']/span" position="attributes">
|
||||
<attribute name="t-if">not display_discount_fixed</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//th[@t-if='display_discount']/span" position="before">
|
||||
<t t-if="display_discount_fixed">
|
||||
<span>Discount Amount (%)</span>
|
||||
</t>
|
||||
</xpath>
|
||||
|
||||
<span t-field="line.discount" position="before">
|
||||
<t t-if="display_discount_fixed">
|
||||
<span class="text-nowrap" t-field="line.discount_fixed" />
|
||||
<span class="text-nowrap"> (or</span>
|
||||
</t>
|
||||
</span>
|
||||
<span t-field="line.discount" position="after">
|
||||
<t t-if="display_discount_fixed">
|
||||
<span class="text-nowrap"> %)</span>
|
||||
</t>
|
||||
</span>
|
||||
</template>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user