Skip to content

Commit

Permalink
[MIG] l10n_be_partner_kbo_bce: Migration to 15.0
Browse files Browse the repository at this point in the history
[MIG] l10n_be_partner_kbo_bce: Migration to 15.0


[MIG] l10n_be_partner_kbo_bce: Migration to 15.0
  • Loading branch information
jdidderen-noviat committed Jan 13, 2023
1 parent eca533c commit 6230d9d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion l10n_be_partner_kbo_bce/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
30 changes: 14 additions & 16 deletions l10n_be_partner_kbo_bce/demo/res_partner.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data noupdate="0">
<record id="res_partner_1" model="res.partner">
<field name="name">Noviat</field>
<field
name="category_id"
eval="[(6, 0, [ref('base.res_partner_category_8')])]"
/>
<field name="is_company">1</field>
<field name="city">Brussel</field>
<field name="zip">1083</field>
<field name="street">Rusatiralaan 1</field>
<field name="email">[email protected]</field>
<field name="phone">+32 2 808 86 38</field>
<field name="website">http://www.noviat.com</field>
</record>
</data>
<record id="res_partner_1" model="res.partner">
<field name="name">Noviat</field>
<field
name="category_id"
eval="[(6, 0, [ref('base.res_partner_category_8')])]"
/>
<field name="is_company">1</field>
<field name="city">Brussel</field>
<field name="zip">1083</field>
<field name="street">Rusatiralaan 1</field>
<field name="email">[email protected]</field>
<field name="phone">+32 2 808 86 38</field>
<field name="website">http://www.noviat.com</field>
</record>
</odoo>
5 changes: 3 additions & 2 deletions l10n_be_partner_kbo_bce/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6230d9d

Please sign in to comment.