From 3b5f33281da52c120ee98b7327e627c438d22f8c Mon Sep 17 00:00:00 2001 From: Julien Castiaux Date: Thu, 28 Mar 2019 09:09:11 +0000 Subject: [PATCH] Partial Revert "[FIX] sale: subtotal computation and display" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This partially reverts commit e2e27b41ad2b132595836f9b03ae9a25a4951c66. The commit changes the DOM structure in order to pretty print both amount (value without tax, B2B setting) and total price (value with tax, B2C setting). Actually having both (B2B and B2C) is a client misconfiguration and we do not support that, furthermore changing the DOM structures can break inherited templates. The said commit was also fine tunning 716ff76, the fine tune is related the the removal of the dynamic colspan attribute. The section, note and subtotal should take the entire width of the table, setting the colspan to an abritary maximum ensures they fill the entire width. closes odoo/odoo#32194 Signed-off-by: Jérémy Kersten (jke) --- addons/account/views/report_invoice.xml | 31 +++++++----------- addons/sale/report/sale_report_templates.xml | 33 ++++++++------------ addons/sale/views/sale_portal_templates.xml | 33 ++++++++------------ 3 files changed, 38 insertions(+), 59 deletions(-) diff --git a/addons/account/views/report_invoice.xml b/addons/account/views/report_invoice.xml index 1c57b6892c9..043c5a3cc47 100644 --- a/addons/account/views/report_invoice.xml +++ b/addons/account/views/report_invoice.xml @@ -59,18 +59,19 @@ Disc.(%) Taxes - Amount - Total Price + + Amount + Total Price + - - + - - + + @@ -89,11 +90,9 @@ - - - - - + + + @@ -101,8 +100,7 @@ - - + @@ -116,14 +114,9 @@ Subtotal - | diff --git a/addons/sale/report/sale_report_templates.xml b/addons/sale/report/sale_report_templates.xml index 28a5d105dfc..380596eb181 100644 --- a/addons/sale/report/sale_report_templates.xml +++ b/addons/sale/report/sale_report_templates.xml @@ -77,19 +77,20 @@ Disc.(%) Taxes - Amount - Total Price + + Amount + Total Price + - - + - - + + @@ -107,11 +108,9 @@ - - - - - + + + @@ -119,8 +118,7 @@ - - + @@ -131,17 +129,12 @@ - + Subtotal - | diff --git a/addons/sale/views/sale_portal_templates.xml b/addons/sale/views/sale_portal_templates.xml index 40bd6c27414..62d55ba7741 100644 --- a/addons/sale/views/sale_portal_templates.xml +++ b/addons/sale/views/sale_portal_templates.xml @@ -435,19 +435,20 @@ Discount Taxes - Amount - Total Price + + Amount + Total Price + - - + - - + + @@ -478,11 +479,9 @@ - - - - - + + + @@ -490,8 +489,7 @@ - - + @@ -505,14 +503,9 @@ Subtotal - |