From b2bceb42d36239f0d49360a83b0d63bf78e804d6 Mon Sep 17 00:00:00 2001 From: "Hansun (hale)" Date: Wed, 25 Jan 2023 17:56:40 +0000 Subject: [PATCH] [FIX] base_setup: correct VAT label for all countries To reproduce the issue: 1. Install [Accounting] on Apps 2. On [Settings], - [Users & Companies]>[Companies]: add a company with country Belgium - Set the company to the Belgian one - add French, set the language to it - [General Settings] - check the [Companies] section Desired behavior: Correction of VAT label Impacted versions: 14.0 up to master opw-3104416 closes odoo/odoo#111243 X-original-commit: f740cbeed106b5e04538128c861151039751ac1d Signed-off-by: Nicolas Lempereur (nle) Signed-off-by: Lee, Hansun (hale) --- addons/base_setup/models/res_config_settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/base_setup/models/res_config_settings.py b/addons/base_setup/models/res_config_settings.py index fefe56b5f56..63cfa315164 100644 --- a/addons/base_setup/models/res_config_settings.py +++ b/addons/base_setup/models/res_config_settings.py @@ -114,7 +114,9 @@ class ResConfigSettings(models.TransientModel): informations += '%s\n' % self.company_id.city if self.company_id.city else '' informations += '%s\n' % self.company_id.state_id.display_name if self.company_id.state_id else '' informations += '%s' % self.company_id.country_id.display_name if self.company_id.country_id else '' - informations += '\nVAT: %s' % self.company_id.vat if self.company_id.vat else '' + vat_display = self.company_id.country_id.vat_label or _('VAT') + vat_display = '\n' + vat_display + ': ' + informations += '%s %s' % (vat_display, self.company_id.vat) if self.company_id.vat else '' for record in self: record.company_informations = informations