Initial commit: Odoo 18.0-20251222 extra-addons
Some checks failed
pre-commit / pre-commit (push) Has been cancelled
tests / Detect unreleased dependencies (push) Has been cancelled
tests / test with OCB (push) Has been cancelled
tests / test with Odoo (push) Has been cancelled

This commit is contained in:
tocmo0nlord
2026-03-13 20:43:25 +00:00
parent 36e847a7df
commit adbe430761
9472 changed files with 1265727 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<template
id="sale_discount_display_amount_document"
inherit_id="sale.report_saleorder_document"
>
<xpath expr="//div[@id='total']//table" position="inside">
<t groups="sale.group_discount_per_so_line" t-if="doc.discount_total">
<t
t-set="is_discount"
t-value="doc.company_id.report_total_without_discount and doc.price_total_no_discount != doc.amount_total"
/>
<tr class="border-black" t-if="is_discount">
<td name="td_total_without_discount_label">
<strong>Total Without Discount</strong>
</td>
<td name="td_total_without_discount" class="text-end">
<span t-field="doc.price_total_no_discount" />
</td>
</tr>
<tr t-attf-class="{{ 'border-black' if not is_discount else '' }}">
<td name="td_discount_total_label">
<strong>Discount</strong>
</td>
<td name="td_discount_total" class="text-end">
<span t-field="doc.discount_total" />
</td>
</tr>
</t>
</xpath>
</template>
</odoo>