From ec96c0b3c252244066bea264e88867983969d6ee Mon Sep 17 00:00:00 2001 From: qdp-odoo Date: Mon, 18 Sep 2017 21:57:48 +0200 Subject: [PATCH] [IMP] base: add vat_label on res.country That allows to display the 'vat' field under the right label in reports. --- addons/account/views/report_invoice.xml | 2 +- .../mrp_repair_templates_repair_order.xml | 4 +-- .../static/src/xml/printbill.xml | 2 +- .../report/purchase_order_templates.xml | 2 +- .../report/purchase_quotation_templates.xml | 2 +- .../sale/report/invoice_report_templates.xml | 2 +- addons/sale/report/sale_report_templates.xml | 2 +- .../report/report_stockpicking_operations.xml | 2 +- addons/web/views/report_templates.xml | 8 +++--- odoo/addons/base/res/res_country.py | 1 + odoo/addons/base/res/res_country_data.xml | 28 +++++++++++++++++++ odoo/addons/base/res/res_country_view.xml | 1 + 12 files changed, 43 insertions(+), 13 deletions(-) diff --git a/addons/account/views/report_invoice.xml b/addons/account/views/report_invoice.xml index bec3e095229..cca8934e060 100644 --- a/addons/account/views/report_invoice.xml +++ b/addons/account/views/report_invoice.xml @@ -9,7 +9,7 @@
-
VAT:
+
:
diff --git a/addons/mrp_repair/report/mrp_repair_templates_repair_order.xml b/addons/mrp_repair/report/mrp_repair_templates_repair_order.xml index 54dca87b277..4c54eaf7d21 100644 --- a/addons/mrp_repair/report/mrp_repair_templates_repair_order.xml +++ b/addons/mrp_repair/report/mrp_repair_templates_repair_order.xml @@ -15,13 +15,13 @@ Invoice address:
-

VAT:

+

:

Shipping address :
-

VAT:

+

:

diff --git a/addons/pos_restaurant/static/src/xml/printbill.xml b/addons/pos_restaurant/static/src/xml/printbill.xml index 79c82ea95b2..2771409e5e1 100644 --- a/addons/pos_restaurant/static/src/xml/printbill.xml +++ b/addons/pos_restaurant/static/src/xml/printbill.xml @@ -54,7 +54,7 @@
Tel:
-
VAT:
+
:
diff --git a/addons/purchase/report/purchase_order_templates.xml b/addons/purchase/report/purchase_order_templates.xml index 7ca0c433b33..c91660ba147 100644 --- a/addons/purchase/report/purchase_order_templates.xml +++ b/addons/purchase/report/purchase_order_templates.xml @@ -22,7 +22,7 @@
-

VAT:

+

:

diff --git a/addons/purchase/report/purchase_quotation_templates.xml b/addons/purchase/report/purchase_quotation_templates.xml index c14f3229b72..79a1d82ab75 100644 --- a/addons/purchase/report/purchase_quotation_templates.xml +++ b/addons/purchase/report/purchase_quotation_templates.xml @@ -22,7 +22,7 @@
-

VAT:

+

:

diff --git a/addons/sale/report/invoice_report_templates.xml b/addons/sale/report/invoice_report_templates.xml index 865ec8a58d0..bf806ebce3b 100644 --- a/addons/sale/report/invoice_report_templates.xml +++ b/addons/sale/report/invoice_report_templates.xml @@ -100,7 +100,7 @@
-
VAT:
+
:
diff --git a/addons/sale/report/sale_report_templates.xml b/addons/sale/report/sale_report_templates.xml index c5a912625c8..1c8ef5e3497 100644 --- a/addons/sale/report/sale_report_templates.xml +++ b/addons/sale/report/sale_report_templates.xml @@ -24,7 +24,7 @@
-

VAT:

+

:

diff --git a/addons/stock/report/report_stockpicking_operations.xml b/addons/stock/report/report_stockpicking_operations.xml index 1169a9772d1..443e18c8a71 100644 --- a/addons/stock/report/report_stockpicking_operations.xml +++ b/addons/stock/report/report_stockpicking_operations.xml @@ -33,7 +33,7 @@
-

VAT:

+

:

diff --git a/addons/web/views/report_templates.xml b/addons/web/views/report_templates.xml index bb5a11bc684..8a2b3be34c2 100644 --- a/addons/web/views/report_templates.xml +++ b/addons/web/views/report_templates.xml @@ -157,7 +157,7 @@
  • -
  • VAT:
  • +
  • :
  • @@ -196,7 +196,7 @@
  • Tel:
  • Mail:
  • Web:
  • -
  • VAT:
  • +
  • :
  • @@ -215,7 +215,7 @@
    • -
    • VAT:
    • +
    • :
    • Tel:
    • @@ -281,7 +281,7 @@
    • Phone:
    • Email:
    • Web:
    • -
    • VAT:
    • +
    • :
    diff --git a/odoo/addons/base/res/res_country.py b/odoo/addons/base/res/res_country.py index 36e539f8e23..a3984155b4e 100644 --- a/odoo/addons/base/res/res_country.py +++ b/odoo/addons/base/res/res_country.py @@ -64,6 +64,7 @@ class Country(models.Model): ('after', 'After Address'), ], string="Customer Name Position", default="before", help="Determines where the customer/company name should be placed, i.e. after or before the address.") + vat_label = fields.Char(string='Vat Label', translate=True, help="Use this field if you want to change vat label.") _sql_constraints = [ ('name_uniq', 'unique (name)', diff --git a/odoo/addons/base/res/res_country_data.xml b/odoo/addons/base/res/res_country_data.xml index 95b83a5fa52..abe8291d7c0 100644 --- a/odoo/addons/base/res/res_country_data.xml +++ b/odoo/addons/base/res/res_country_data.xml @@ -84,6 +84,7 @@ + VAT Australia @@ -142,6 +143,7 @@ + VAT Burkina Faso @@ -156,6 +158,7 @@ + VAT Bahrain @@ -391,6 +394,7 @@ + VAT Czech Republic @@ -398,6 +402,7 @@ + VAT Germany @@ -406,6 +411,7 @@ + VAT Djibouti @@ -420,6 +426,7 @@ + VAT Dominica @@ -455,6 +462,7 @@ + VAT Egypt @@ -483,6 +491,7 @@ + VAT Ethiopia @@ -498,6 +507,7 @@ + VAT Fiji @@ -534,6 +544,7 @@ + VAT Gabon @@ -623,6 +634,7 @@ + VAT South Georgia and the South Sandwich Islands @@ -685,6 +697,7 @@ + VAT Haiti @@ -699,6 +712,7 @@ + VAT Indonesia @@ -713,6 +727,7 @@ + VAT Israel @@ -770,6 +785,7 @@ + VAT Jersey @@ -934,6 +950,7 @@ + VAT Luxembourg @@ -941,6 +958,7 @@ + VAT Latvia @@ -948,6 +966,7 @@ + VAT Libya @@ -1073,6 +1092,7 @@ + VAT Mauritius @@ -1165,6 +1185,7 @@ + VAT Norway @@ -1257,6 +1278,7 @@ + VAT Saint Pierre and Miquelon @@ -1291,6 +1313,7 @@ + VAT Palau @@ -1325,6 +1348,7 @@ + VAT Serbia @@ -1381,6 +1405,7 @@ + VAT Singapore @@ -1402,6 +1427,7 @@ + VAT Svalbard and Jan Mayen @@ -1415,6 +1441,7 @@ + VAT Sierra Leone @@ -1626,6 +1653,7 @@ + VAT USA Minor Outlying Islands diff --git a/odoo/addons/base/res/res_country_view.xml b/odoo/addons/base/res/res_country_view.xml index 5b883b993e3..aede3731c9d 100644 --- a/odoo/addons/base/res/res_country_view.xml +++ b/odoo/addons/base/res/res_country_view.xml @@ -31,6 +31,7 @@ +