diff --git a/l10n_be_partner_kbo_bce/__manifest__.py b/l10n_be_partner_kbo_bce/__manifest__.py index 232f7f054..c289c0916 100644 --- a/l10n_be_partner_kbo_bce/__manifest__.py +++ b/l10n_be_partner_kbo_bce/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Belgium - KBO/BCE numbers", "category": "Localization", - "version": "14.0.1.0.1", + "version": "15.0.1.0.0", "license": "AGPL-3", "author": "Noviat,Odoo Community Association (OCA)", "website": "https://github.com/OCA/l10n-belgium", diff --git a/l10n_be_partner_kbo_bce/demo/res_partner.xml b/l10n_be_partner_kbo_bce/demo/res_partner.xml index 59b88e0e9..275b79eb7 100644 --- a/l10n_be_partner_kbo_bce/demo/res_partner.xml +++ b/l10n_be_partner_kbo_bce/demo/res_partner.xml @@ -1,19 +1,17 @@ - - - Noviat - - 1 - Brussel - 1083 - Rusatiralaan 1 - info@noviat.com - +32 2 808 86 38 - http://www.noviat.com - - + + Noviat + + 1 + Brussel + 1083 + Rusatiralaan 1 + info@noviat.com + +32 2 808 86 38 + http://www.noviat.com + diff --git a/l10n_be_partner_kbo_bce/models/res_partner.py b/l10n_be_partner_kbo_bce/models/res_partner.py index d10e612b9..885f35efe 100644 --- a/l10n_be_partner_kbo_bce/models/res_partner.py +++ b/l10n_be_partner_kbo_bce/models/res_partner.py @@ -128,8 +128,9 @@ def _sync_kbo_bce_number(self, sync_vals): if kbn and vat: if kbn.replace(".", "") != self._fix_vat_number(vat, country_id)[2:]: raise ValidationError( - _("KBO/BCE Number '%s' is not consistent with " "VAT Number '%s'.") - % (kbn, vat) + _( + "KBO/BCE Number {kbn} is not consistent with VAT Number {vat}." + ).format(kbn=kbn, vat=vat) ) # minimise overhead caused by sync of _commercial_fields