Skip to content

Commit

Permalink
run precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-champonnois committed Dec 8, 2022
1 parent 5f60e12 commit d99f3a3
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
10 changes: 4 additions & 6 deletions l10n_be_partner_kbo_bce/demo/res_partner.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data noupdate="0">
<odoo 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')])]"
/>
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>
Expand All @@ -15,5 +14,4 @@
<field name="phone">+32 2 808 86 38</field>
<field name="website">http://www.noviat.com</field>
</record>
</data>
</odoo>
5 changes: 4 additions & 1 deletion l10n_be_partner_kbo_bce/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ 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'.")
_(
"KBO/BCE Number '%(kbn)s' is not consistent with "
"VAT Number '%(vat)s'."
)
% (kbn, vat)
)

Expand Down
6 changes: 6 additions & 0 deletions setup/l10n_be_partner_kbo_bce/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

0 comments on commit d99f3a3

Please sign in to comment.