From 655d375af83dd49bbbd5f5818e319c3b0e9778c1 Mon Sep 17 00:00:00 2001 From: "Maximilien (malb)" Date: Fri, 13 Oct 2023 12:33:03 +0200 Subject: [PATCH] [IMP] account, purchase, sale, l10n_br_sales, l10n_{ar,cl}: Ui fix In this pr: https://github.com/odoo/enterprise/pull/30853 we've merged two settings into one to make Tax calculation & display more coherent. In the case of a "Tax per line" computation, the column "Tax Included" is optional=hide in the backend, but we've elected to put it in the PDF all the time. This task we will only change the pdf and portal (preview): 1. Remove the "Tax Incl" column on all relevant templates (pdf/portal). 2. Rename the "Tax Excl" column to "Amount". task-3552656 closes odoo/odoo#138624 Related: odoo/enterprise#48923 Signed-off-by: Florian Gilbert (flg) --- addons/account/views/report_invoice.xml | 8 +------- addons/l10n_ar/views/report_invoice.xml | 3 --- addons/l10n_br_sales/report/sale_order_templates.xml | 3 --- addons/l10n_br_sales/views/sale_portal_templates.xml | 7 ++----- addons/l10n_cl/views/report_invoice.xml | 4 ---- addons/purchase/report/purchase_order_templates.xml | 10 +--------- addons/purchase/views/portal_templates.xml | 9 +-------- addons/sale/report/ir_actions_report_templates.xml | 9 +-------- addons/sale/views/sale_portal_templates.xml | 9 +-------- 9 files changed, 7 insertions(+), 55 deletions(-) diff --git a/addons/account/views/report_invoice.xml b/addons/account/views/report_invoice.xml index eae0d7790c6..87f166ae186 100644 --- a/addons/account/views/report_invoice.xml +++ b/addons/account/views/report_invoice.xml @@ -115,10 +115,7 @@ Taxes - Tax excl. - - - Tax incl. + Amount @@ -150,9 +147,6 @@ 27.00 - - 31.05 - diff --git a/addons/l10n_ar/views/report_invoice.xml b/addons/l10n_ar/views/report_invoice.xml index a5b278583fa..c2521231fee 100644 --- a/addons/l10n_ar/views/report_invoice.xml +++ b/addons/l10n_ar/views/report_invoice.xml @@ -142,15 +142,12 @@ Amount - l10n_ar_values['price_subtotal'] {"widget": "monetary", "display_currency": o.currency_id} - - o._l10n_ar_get_invoice_totals_for_report() diff --git a/addons/l10n_br_sales/report/sale_order_templates.xml b/addons/l10n_br_sales/report/sale_order_templates.xml index ae7f15a1603..6d656c3febe 100644 --- a/addons/l10n_br_sales/report/sale_order_templates.xml +++ b/addons/l10n_br_sales/report/sale_order_templates.xml @@ -15,9 +15,6 @@ - - Total - diff --git a/addons/l10n_br_sales/views/sale_portal_templates.xml b/addons/l10n_br_sales/views/sale_portal_templates.xml index d779ebec40d..4c3f9b43cc1 100644 --- a/addons/l10n_br_sales/views/sale_portal_templates.xml +++ b/addons/l10n_br_sales/views/sale_portal_templates.xml @@ -5,13 +5,10 @@ - + - + - - Total - diff --git a/addons/l10n_cl/views/report_invoice.xml b/addons/l10n_cl/views/report_invoice.xml index d24fc990e64..f4306f20bfa 100644 --- a/addons/l10n_cl/views/report_invoice.xml +++ b/addons/l10n_cl/views/report_invoice.xml @@ -178,16 +178,12 @@ Amount - - l10n_cl_values['price_subtotal'] {"widget": "monetary", "display_currency": o.currency_id} - - o._l10n_cl_get_invoice_totals_for_report() diff --git a/addons/purchase/report/purchase_order_templates.xml b/addons/purchase/report/purchase_order_templates.xml index fc73e76014f..6e49262cd38 100644 --- a/addons/purchase/report/purchase_order_templates.xml +++ b/addons/purchase/report/purchase_order_templates.xml @@ -54,10 +54,7 @@ - @@ -65,7 +62,6 @@ - @@ -92,10 +88,6 @@ - - @@ -278,7 +275,6 @@ - @@ -319,9 +315,6 @@ - - @@ -96,7 +93,6 @@ - @@ -122,9 +118,6 @@ - - @@ -553,7 +550,6 @@ - @@ -588,9 +584,6 @@ -
Qty Unit Price - Tax excl. - - Tax incl. + Amount
- - diff --git a/addons/purchase/views/portal_templates.xml b/addons/purchase/views/portal_templates.xml index c5ce0e43481..60fed15ae92 100644 --- a/addons/purchase/views/portal_templates.xml +++ b/addons/purchase/views/portal_templates.xml @@ -264,10 +264,7 @@ Taxes - Tax excl. - - Tax incl. + Amount
- - diff --git a/addons/sale/report/ir_actions_report_templates.xml b/addons/sale/report/ir_actions_report_templates.xml index b802c03738e..9000abd724e 100644 --- a/addons/sale/report/ir_actions_report_templates.xml +++ b/addons/sale/report/ir_actions_report_templates.xml @@ -82,10 +82,7 @@ Taxes - Tax excl. - - Tax incl. + Amount
27.00 - 31.05 - diff --git a/addons/sale/views/sale_portal_templates.xml b/addons/sale/views/sale_portal_templates.xml index c90f7c0351e..84b1da3ba4f 100644 --- a/addons/sale/views/sale_portal_templates.xml +++ b/addons/sale/views/sale_portal_templates.xml @@ -538,10 +538,7 @@ Taxes - Tax excl. - - Tax incl. + Amount
- -