From 9dbf815dd8ba62dd9b02eb3832f8dff18262b897 Mon Sep 17 00:00:00 2001 From: Martin Geubelle Date: Mon, 13 Aug 2018 14:37:14 +0200 Subject: [PATCH] [REF] *: modify templates to allow smoother modifications With the report editor in Studio, some reports were not easily editable (not idiomatic XML, too much Python logic in XML, etc.). These reports have been cleaned up. --- ...count_report_payment_receipt_templates.xml | 10 ++-- .../views/report_agedpartnerbalance.xml | 4 +- addons/account/views/report_financial.xml | 16 +++---- addons/account/views/report_invoice.xml | 14 +++--- .../report/report_timesheet_templates.xml | 46 +++++++++---------- addons/lunch/report/lunch_order_templates.xml | 3 +- .../report/ir_module_report_templates.xml | 14 +++--- 7 files changed, 52 insertions(+), 55 deletions(-) diff --git a/addons/account/report/account_report_payment_receipt_templates.xml b/addons/account/report/account_report_payment_receipt_templates.xml index 438c83ee975..62df9145885 100644 --- a/addons/account/report/account_report_payment_receipt_templates.xml +++ b/addons/account/report/account_report_payment_receipt_templates.xml @@ -34,11 +34,11 @@ - - - - - + + + + + diff --git a/addons/account/views/report_agedpartnerbalance.xml b/addons/account/views/report_agedpartnerbalance.xml index cfb3e2590e9..40fe28e7908 100644 --- a/addons/account/views/report_agedpartnerbalance.xml +++ b/addons/account/views/report_agedpartnerbalance.xml @@ -37,7 +37,7 @@
Invoice DateInvoice NumberOriginal AmountAmount PaidBalanceInvoice DateInvoice NumberOriginal AmountAmount PaidBalance
- + @@ -46,7 +46,7 @@ - + diff --git a/addons/account/views/report_financial.xml b/addons/account/views/report_financial.xml index 3515fe6ce5c..24774bd9c08 100644 --- a/addons/account/views/report_financial.xml +++ b/addons/account/views/report_financial.xml @@ -26,10 +26,10 @@
PartnersPartners Not due TotalTotal
Account Total
- - - - + + + + @@ -59,8 +59,8 @@
NameDebitCreditBalanceNameDebitCreditBalance
- - + + @@ -82,8 +82,8 @@
NameBalanceNameBalance
- - + + diff --git a/addons/account/views/report_invoice.xml b/addons/account/views/report_invoice.xml index 8eacfb366c8..31e0417b5a2 100644 --- a/addons/account/views/report_invoice.xml +++ b/addons/account/views/report_invoice.xml @@ -62,22 +62,22 @@ - - - - + + + + - + diff --git a/addons/hr_timesheet/report/report_timesheet_templates.xml b/addons/hr_timesheet/report/report_timesheet_templates.xml index 13b702f4028..af8b4da6781 100644 --- a/addons/hr_timesheet/report/report_timesheet_templates.xml +++ b/addons/hr_timesheet/report/report_timesheet_templates.xml @@ -19,35 +19,33 @@
NameBalanceNameBalance
DescriptionSource DocumentQuantityUnit PriceDescriptionSource DocumentQuantityUnit Price Disc.(%) TaxesTaxes Tax Amount - Amount - Total Price + Amount + Total Price
- - - + + + - + - - - - - - - + + + + + - - + + diff --git a/odoo/addons/base/report/ir_module_report_templates.xml b/odoo/addons/base/report/ir_module_report_templates.xml index b7ae13cab5b..f721811b03a 100644 --- a/odoo/addons/base/report/ir_module_report_templates.xml +++ b/odoo/addons/base/report/ir_module_report_templates.xml @@ -3,18 +3,18 @@
DateResponsibleDescriptionDateResponsibleDescription Project - TaskTimeTime
- - - - - - - - - - - +
+ + + + + + + + - + + -
diff --git a/addons/lunch/report/lunch_order_templates.xml b/addons/lunch/report/lunch_order_templates.xml index d7ee34c837f..370ffcf2ab2 100644 --- a/addons/lunch/report/lunch_order_templates.xml +++ b/addons/lunch/report/lunch_order_templates.xml @@ -34,8 +34,7 @@ - - +