From 7953c8f9f2d6f088362af8e36ba66379c4a9c30d Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Mon, 23 Mar 2020 14:08:29 +0100 Subject: [PATCH 01/27] 13.0 port --- l10n_be_partner_kbo_bce/README.rst | 22 +++ l10n_be_partner_kbo_bce/__init__.py | 1 + l10n_be_partner_kbo_bce/__manifest__.py | 15 ++ .../data/res_partner_id_category.xml | 10 ++ l10n_be_partner_kbo_bce/demo/res_partner.xml | 18 +++ l10n_be_partner_kbo_bce/i18n/fr.po | 22 +++ l10n_be_partner_kbo_bce/i18n/nl.po | 22 +++ l10n_be_partner_kbo_bce/models/__init__.py | 2 + l10n_be_partner_kbo_bce/models/res_partner.py | 148 ++++++++++++++++++ .../models/res_partner_id_category.py | 25 +++ .../static/description/icon.png | Bin 0 -> 17495 bytes l10n_be_partner_kbo_bce/tests/__init__.py | 1 + .../tests/test_l10n_be_partner_kbo_bce.py | 42 +++++ l10n_be_partner_kbo_bce/views/res_partner.xml | 16 ++ 14 files changed, 344 insertions(+) create mode 100644 l10n_be_partner_kbo_bce/README.rst create mode 100644 l10n_be_partner_kbo_bce/__init__.py create mode 100644 l10n_be_partner_kbo_bce/__manifest__.py create mode 100644 l10n_be_partner_kbo_bce/data/res_partner_id_category.xml create mode 100644 l10n_be_partner_kbo_bce/demo/res_partner.xml create mode 100644 l10n_be_partner_kbo_bce/i18n/fr.po create mode 100644 l10n_be_partner_kbo_bce/i18n/nl.po create mode 100644 l10n_be_partner_kbo_bce/models/__init__.py create mode 100644 l10n_be_partner_kbo_bce/models/res_partner.py create mode 100644 l10n_be_partner_kbo_bce/models/res_partner_id_category.py create mode 100644 l10n_be_partner_kbo_bce/static/description/icon.png create mode 100644 l10n_be_partner_kbo_bce/tests/__init__.py create mode 100644 l10n_be_partner_kbo_bce/tests/test_l10n_be_partner_kbo_bce.py create mode 100644 l10n_be_partner_kbo_bce/views/res_partner.xml diff --git a/l10n_be_partner_kbo_bce/README.rst b/l10n_be_partner_kbo_bce/README.rst new file mode 100644 index 000000000..0c0f57aa3 --- /dev/null +++ b/l10n_be_partner_kbo_bce/README.rst @@ -0,0 +1,22 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png + :target: https://www.gnu.org/licenses/agpl + :alt: License: AGPL-3 + +======================= +Belgium KBO/BCE Numbers +======================= + +This module adds support for KBO/BCE numbers on partner records including a consistency check with the VAT numbers. + +Installation +============ + +There is no specific installation procedure for this module. + +Credits +======= + +Contributors +------------ + +* Luc De Meyer diff --git a/l10n_be_partner_kbo_bce/__init__.py b/l10n_be_partner_kbo_bce/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/l10n_be_partner_kbo_bce/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/l10n_be_partner_kbo_bce/__manifest__.py b/l10n_be_partner_kbo_bce/__manifest__.py new file mode 100644 index 000000000..35746b1fd --- /dev/null +++ b/l10n_be_partner_kbo_bce/__manifest__.py @@ -0,0 +1,15 @@ +# Copyright 2009-2020 Noviat. +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Belgium - KBO/BCE numbers", + "category": "Localization", + "version": "13.0.1.0.0", + "license": "AGPL-3", + "author": "Noviat", + "website": "https://www.noviat.com", + "depends": ["partner_identification", "base_vat_sanitized"], + "data": ["data/res_partner_id_category.xml", "views/res_partner.xml"], + "demo": ["demo/res_partner.xml"], + "installable": True, +} diff --git a/l10n_be_partner_kbo_bce/data/res_partner_id_category.xml b/l10n_be_partner_kbo_bce/data/res_partner_id_category.xml new file mode 100644 index 000000000..f769a5ea1 --- /dev/null +++ b/l10n_be_partner_kbo_bce/data/res_partner_id_category.xml @@ -0,0 +1,10 @@ + + + + + l10n_be_kbo_bce + Belgium KBO/BCE Number + failed = self.validate_l10n_be_partner_kbo_bce(id_number) + + + diff --git a/l10n_be_partner_kbo_bce/demo/res_partner.xml b/l10n_be_partner_kbo_bce/demo/res_partner.xml new file mode 100644 index 000000000..ee62a7839 --- /dev/null +++ b/l10n_be_partner_kbo_bce/demo/res_partner.xml @@ -0,0 +1,18 @@ + + + + + + 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/i18n/fr.po b/l10n_be_partner_kbo_bce/i18n/fr.po new file mode 100644 index 000000000..1cd49a0ed --- /dev/null +++ b/l10n_be_partner_kbo_bce/i18n/fr.po @@ -0,0 +1,22 @@ +# French translation of Odoo Server. +# This file contains the translation of the following modules: +# * l10n_be_partner_kbo_bce +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-04-06 11:30:51.934000\n" +"PO-Revision-Date: 2018-04-06 11:30:51.934000\n" +"Last-Translator: Luc De Meyer (Noviat nv/sa)\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fr\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: l10n_be_partner_kbo_bce +#: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_partner_kbo_bce_number +msgid "KBO/BCE Number" +msgstr "Numéro BCE" diff --git a/l10n_be_partner_kbo_bce/i18n/nl.po b/l10n_be_partner_kbo_bce/i18n/nl.po new file mode 100644 index 000000000..2f5d03d8f --- /dev/null +++ b/l10n_be_partner_kbo_bce/i18n/nl.po @@ -0,0 +1,22 @@ +# Dutch translation of Odoo Server. +# This file contains the translation of the following modules: +# * l10n_be_partner_kbo_bce +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-04-06 11:30:51.934000\n" +"PO-Revision-Date: 2018-04-06 11:30:51.934000\n" +"Last-Translator: Luc De Meyer (Noviat nv/sa)\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: nl\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: l10n_be_partner_kbo_bce +#: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_partner_kbo_bce_number +msgid "KBO/BCE Number" +msgstr "KBO Nummer" diff --git a/l10n_be_partner_kbo_bce/models/__init__.py b/l10n_be_partner_kbo_bce/models/__init__.py new file mode 100644 index 000000000..21153e6be --- /dev/null +++ b/l10n_be_partner_kbo_bce/models/__init__.py @@ -0,0 +1,2 @@ +from . import res_partner +from . import res_partner_id_category diff --git a/l10n_be_partner_kbo_bce/models/res_partner.py b/l10n_be_partner_kbo_bce/models/res_partner.py new file mode 100644 index 000000000..bdb8ef492 --- /dev/null +++ b/l10n_be_partner_kbo_bce/models/res_partner.py @@ -0,0 +1,148 @@ +# Copyright 2009-2020 Noviat. +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import _, api, fields, models +from odoo.exceptions import ValidationError + + +class ResPartner(models.Model): + _inherit = "res.partner" + + kbo_bce_number = fields.Char( + string="KBO/BCE Number", + compute=lambda s: s._compute_identification( + "kbo_bce_number", "l10n_be_kbo_bce" + ), + inverse=lambda s: s._inverse_identification( + "kbo_bce_number", "l10n_be_kbo_bce" + ), + search=lambda s, *a: s._search_identification("l10n_be_kbo_bce", *a), + ) + country_code = fields.Char(related="country_id.code") + + @api.model_create_multi + def create(self, vals_list): + for vals in vals_list: + if vals.get("is_company"): + if "vat" in vals or "kbo_bce_number" in vals: + self._sync_kbo_bce_number(vals) + return super().create(vals_list) + + def write(self, vals): + # base module, res_partner.py drops 'is_company' from vals + # hence we save vals before super() + vals_in = vals.copy() + if "is_company" in vals_in: + if vals_in["is_company"]: + company_partners = self + else: + company_partners = self.env["res.partner"] + else: + company_partners = self.filtered(lambda r: r.is_company) + contact_partners = self - company_partners + + super(ResPartner, contact_partners).write(vals) + for partner in company_partners: + values = vals_in.copy() + if any( + [ + x in vals_in + for x in ["vat", "kbo_bce_number", "is_company", "country_id"] + ] + ): + if "vat" in vals_in: + vat = vals_in["vat"] + else: + vat = partner.vat + if "kbo_bce_number" in vals_in: + kbo_bce_number = vals_in["kbo_bce_number"] + else: + kbo_bce_number = partner.kbo_bce_number + if "country_id" in vals_in: + country_id = vals_in["country_id"] + else: + country_id = partner.country_id.id + sync_vals = { + "vat": vat, + "kbo_bce_number": kbo_bce_number, + "country_id": country_id, + } + partner._sync_kbo_bce_number(sync_vals) + for k in sync_vals: + values[k] = sync_vals[k] + super(ResPartner, partner).write(values) + return True + + def _vals_format_kbo_bce_number(self, vals): + rn = vals.get("kbo_bce_number") + if rn: + vals["kbo_bce_number"] = self._format_kbo_bce_number(rn) + + def _format_kbo_bce_number(self, number): + res = number.replace(" ", "").replace(".", "") + res = res[:4] + "." + res[4:7] + "." + res[7:] + return res + + def _get_belgium(self): + be = self.env.ref("base.be") or self.env["res.country"].search( + [("code", "=", "BE")] + ) + if not be: + raise ValidationError( + _("Configuration Error, Country BE has not been defined !") + ) + return be + + def _sync_kbo_bce_number(self, sync_vals): + be = self._get_belgium() + vat = sync_vals.get("vat") and self._sanitize_vat(sync_vals["vat"]) + kbn = sync_vals.get("kbo_bce_number") and sync_vals["kbo_bce_number"] + country_id = sync_vals.get("country_id") and sync_vals["country_id"] + has_kbo_bce_number = False + + if vat and vat[0:2] == "BE" and not kbn: + kbn = vat[2:] + sync_vals["kbo_bce_number"] = kbn + has_kbo_bce_number = True + + if kbn and not vat: + has_kbo_bce_number = True + vat_number = kbn.replace(".", "") + if self.vies_vat_check("BE", vat_number): + sync_vals["vat"] = "BE " + vat_number + # cf. l10n_be_coa_multilang for the 'vat_subjected' field + if hasattr(self, "vat_subjected"): + sync_vals["vat_subjected"] = True + + if has_kbo_bce_number and not country_id: + sync_vals["country_id"] = be.id + + self._vals_format_kbo_bce_number(sync_vals) + self._update_kbo_bce_sync_vals(sync_vals) + + # consistency check + kbn = sync_vals.get("kbo_bce_number") + vat = sync_vals.get("vat") + if kbn and vat: + if kbn.replace(".", "") != self._sanitize_vat(vat)[2:]: + raise ValidationError( + _("KBO/BCE Number '%s' is not consistent with " "VAT Number '%s'.") + % (kbn, vat) + ) + + # minimise overhead caused by sync of _commercial_fields + # and address fields to child records + if self.vat == sync_vals.get("vat"): + del sync_vals["vat"] + if self.country_id.id == sync_vals.get("country_id"): + del sync_vals["country_id"] + + def _update_kbo_bce_sync_vals(self, sync_vals): + """ + Use this method for extra customisations, e.g. + lookup in external databases. + + in case of 'create': empty self, sync_vals contains all vals + in case of 'write': self contains partner record + """ + pass diff --git a/l10n_be_partner_kbo_bce/models/res_partner_id_category.py b/l10n_be_partner_kbo_bce/models/res_partner_id_category.py new file mode 100644 index 000000000..cb44792f9 --- /dev/null +++ b/l10n_be_partner_kbo_bce/models/res_partner_id_category.py @@ -0,0 +1,25 @@ +# Copyright 2009-2020 Noviat. +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +import re + +from odoo import api, models + + +class ResPartnerIdCategory(models.Model): + _inherit = "res.partner.id_category" + + @api.model + def validate_l10n_be_partner_kbo_bce(self, id_number): + failed = True + kbo_bce_number = id_number.name + supported_chars = "0-9." + pattern = re.compile("[^" + supported_chars + "]") + if not pattern.findall(kbo_bce_number): + kbo_bce_number = kbo_bce_number.replace(".", "") + if len(kbo_bce_number) == 10: + base = int(kbo_bce_number[:8]) + mod = base % 97 + if 97 - mod == int(kbo_bce_number[-2:]): + failed = False + return failed diff --git a/l10n_be_partner_kbo_bce/static/description/icon.png b/l10n_be_partner_kbo_bce/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..32740c0cc5a5dac8166d897c827a9aa75a94d276 GIT binary patch literal 17495 zcmdsf^;aBGv+Y3e;F92j26uM|4q&+60D=XBMsUA5~>m;yu+1qmMs1OlN*ONl9gKv1#&UI=i&Cw?8ABfuN2lemVH zsDrV-lew)8iHfF|N zNhYEnc5hRE$6?l@&Us|GKaxM8KS={u3Uv5T6m?Ni>V5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W8O3;k;y3L!KvPQER_~!hJ=E33bLp(n(WN!U)J>8+! zS|$D7kbUDtaCpS^*1KDtMq;4?JGxz_ap$cgAG9*<>NBD=wScLa2_`4e^Vt%Q;5Q9T&I!S2sFrVAN@|C#x7yMWmE?Q5>`>+ z?#A^GhliIZ0e + + + res.partner.form.kbo_bce_number + res.partner + + + + + + + + + + From 70f6417db8f1d4d0b3d201c14bcfbc3f8b60b8a2 Mon Sep 17 00:00:00 2001 From: sbejaoui Date: Wed, 25 Mar 2020 10:43:13 +0100 Subject: [PATCH 02/27] [13.0][ADD] - Add Belgium - KBO/BCE numbers --- l10n_be_partner_kbo_bce/README.rst | 68 ++++++++++++++++--- l10n_be_partner_kbo_bce/__manifest__.py | 7 +- .../readme/CONTRIBUTORS.rst | 1 + .../readme/DESCRIPTION.rst | 2 + l10n_be_partner_kbo_bce/readme/INSTALL.rst | 1 + 5 files changed, 68 insertions(+), 11 deletions(-) create mode 100644 l10n_be_partner_kbo_bce/readme/CONTRIBUTORS.rst create mode 100644 l10n_be_partner_kbo_bce/readme/DESCRIPTION.rst create mode 100644 l10n_be_partner_kbo_bce/readme/INSTALL.rst diff --git a/l10n_be_partner_kbo_bce/README.rst b/l10n_be_partner_kbo_bce/README.rst index 0c0f57aa3..6c1ad1305 100644 --- a/l10n_be_partner_kbo_bce/README.rst +++ b/l10n_be_partner_kbo_bce/README.rst @@ -1,22 +1,74 @@ -.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png - :target: https://www.gnu.org/licenses/agpl - :alt: License: AGPL-3 +========================= +Belgium - KBO/BCE numbers +========================= -======================= -Belgium KBO/BCE Numbers -======================= +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -This module adds support for KBO/BCE numbers on partner records including a consistency check with the VAT numbers. +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--belgium-lightgray.png?logo=github + :target: https://github.com/OCA/l10n-belgium/tree/12.0/l10n_be_partner_kbo_bce + :alt: OCA/l10n-belgium +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/l10n-belgium-12-0/l10n-belgium-12-0-l10n_be_partner_kbo_bce + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/119/12.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module adds support for KBO/BCE numbers on partner records including a +consistency check with the VAT numbers. + +**Table of contents** + +.. contents:: + :local: Installation ============ There is no specific installation procedure for this module. +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + Credits ======= Contributors ------------- +~~~~~~~~~~~~ * Luc De Meyer + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +This module is part of the `OCA/l10n-belgium `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/l10n_be_partner_kbo_bce/__manifest__.py b/l10n_be_partner_kbo_bce/__manifest__.py index 35746b1fd..f3ee522c2 100644 --- a/l10n_be_partner_kbo_bce/__manifest__.py +++ b/l10n_be_partner_kbo_bce/__manifest__.py @@ -1,4 +1,4 @@ -# Copyright 2009-2020 Noviat. +# Copyright 2009-2019 Noviat. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { @@ -6,8 +6,9 @@ "category": "Localization", "version": "13.0.1.0.0", "license": "AGPL-3", - "author": "Noviat", - "website": "https://www.noviat.com", + "author": "Noviat," + "Odoo Community Association (OCA)", + "website": "https://github.com/OCA/l10n-belgium", "depends": ["partner_identification", "base_vat_sanitized"], "data": ["data/res_partner_id_category.xml", "views/res_partner.xml"], "demo": ["demo/res_partner.xml"], diff --git a/l10n_be_partner_kbo_bce/readme/CONTRIBUTORS.rst b/l10n_be_partner_kbo_bce/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..044d1a001 --- /dev/null +++ b/l10n_be_partner_kbo_bce/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Luc De Meyer diff --git a/l10n_be_partner_kbo_bce/readme/DESCRIPTION.rst b/l10n_be_partner_kbo_bce/readme/DESCRIPTION.rst new file mode 100644 index 000000000..c68e4bad1 --- /dev/null +++ b/l10n_be_partner_kbo_bce/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +This module adds support for KBO/BCE numbers on partner records including a +consistency check with the VAT numbers. diff --git a/l10n_be_partner_kbo_bce/readme/INSTALL.rst b/l10n_be_partner_kbo_bce/readme/INSTALL.rst new file mode 100644 index 000000000..9d94322d9 --- /dev/null +++ b/l10n_be_partner_kbo_bce/readme/INSTALL.rst @@ -0,0 +1 @@ +There is no specific installation procedure for this module. From af20b5a51f7912c1a690f428d80e1499e1a87e59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Fri, 31 Jul 2020 15:31:27 +0200 Subject: [PATCH 03/27] pre-commit autoformatters --- l10n_be_partner_kbo_bce/__manifest__.py | 3 +- .../data/res_partner_id_category.xml | 16 ++++----- l10n_be_partner_kbo_bce/demo/res_partner.xml | 33 ++++++++++--------- l10n_be_partner_kbo_bce/views/res_partner.xml | 28 ++++++++-------- 4 files changed, 40 insertions(+), 40 deletions(-) diff --git a/l10n_be_partner_kbo_bce/__manifest__.py b/l10n_be_partner_kbo_bce/__manifest__.py index f3ee522c2..ae7805b6c 100644 --- a/l10n_be_partner_kbo_bce/__manifest__.py +++ b/l10n_be_partner_kbo_bce/__manifest__.py @@ -6,8 +6,7 @@ "category": "Localization", "version": "13.0.1.0.0", "license": "AGPL-3", - "author": "Noviat," - "Odoo Community Association (OCA)", + "author": "Noviat,Odoo Community Association (OCA)", "website": "https://github.com/OCA/l10n-belgium", "depends": ["partner_identification", "base_vat_sanitized"], "data": ["data/res_partner_id_category.xml", "views/res_partner.xml"], diff --git a/l10n_be_partner_kbo_bce/data/res_partner_id_category.xml b/l10n_be_partner_kbo_bce/data/res_partner_id_category.xml index f769a5ea1..38c574b79 100644 --- a/l10n_be_partner_kbo_bce/data/res_partner_id_category.xml +++ b/l10n_be_partner_kbo_bce/data/res_partner_id_category.xml @@ -1,10 +1,10 @@ - + - - - l10n_be_kbo_bce - Belgium KBO/BCE Number - failed = self.validate_l10n_be_partner_kbo_bce(id_number) - - + + l10n_be_kbo_bce + Belgium KBO/BCE Number + failed = self.validate_l10n_be_partner_kbo_bce(id_number) + diff --git a/l10n_be_partner_kbo_bce/demo/res_partner.xml b/l10n_be_partner_kbo_bce/demo/res_partner.xml index ee62a7839..59b88e0e9 100644 --- a/l10n_be_partner_kbo_bce/demo/res_partner.xml +++ b/l10n_be_partner_kbo_bce/demo/res_partner.xml @@ -1,18 +1,19 @@ - + - - - - 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/views/res_partner.xml b/l10n_be_partner_kbo_bce/views/res_partner.xml index 3ba6e9a73..dd4dca6a0 100644 --- a/l10n_be_partner_kbo_bce/views/res_partner.xml +++ b/l10n_be_partner_kbo_bce/views/res_partner.xml @@ -1,16 +1,16 @@ - - - res.partner.form.kbo_bce_number - res.partner - - - - - - - - - + + res.partner.form.kbo_bce_number + res.partner + + + + + + + + From 94cc0b3e29f077efe65735ed2f5fc83ec368c656 Mon Sep 17 00:00:00 2001 From: oca-travis Date: Fri, 31 Jul 2020 14:22:53 +0000 Subject: [PATCH 04/27] [UPD] Update l10n_be_partner_kbo_bce.pot --- l10n_be_partner_kbo_bce/i18n/fr.po | 47 +++++++++++++- .../i18n/l10n_be_partner_kbo_bce.pot | 61 +++++++++++++++++++ l10n_be_partner_kbo_bce/i18n/nl.po | 47 +++++++++++++- 3 files changed, 151 insertions(+), 4 deletions(-) create mode 100644 l10n_be_partner_kbo_bce/i18n/l10n_be_partner_kbo_bce.pot diff --git a/l10n_be_partner_kbo_bce/i18n/fr.po b/l10n_be_partner_kbo_bce/i18n/fr.po index 1cd49a0ed..3714801ae 100644 --- a/l10n_be_partner_kbo_bce/i18n/fr.po +++ b/l10n_be_partner_kbo_bce/i18n/fr.po @@ -10,13 +10,56 @@ msgstr "" "PO-Revision-Date: 2018-04-06 11:30:51.934000\n" "Last-Translator: Luc De Meyer (Noviat nv/sa)\n" "Language-Team: \n" +"Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: fr\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: l10n_be_partner_kbo_bce -#: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_partner_kbo_bce_number +#: model:res.partner.id_category,name:l10n_be_partner_kbo_bce.l10n_be_kbo_bce_number_category +#, fuzzy +msgid "Belgium KBO/BCE Number" +msgstr "Numéro BCE" + +#. module: l10n_be_partner_kbo_bce +#: code:addons/l10n_be_partner_kbo_bce/models/res_partner.py:0 +#, python-format +msgid "Configuration Error, Country BE has not been defined !" +msgstr "" + +#. module: l10n_be_partner_kbo_bce +#: model:ir.model,name:l10n_be_partner_kbo_bce.model_res_partner +msgid "Contact" +msgstr "" + +#. module: l10n_be_partner_kbo_bce +#: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_partner__country_code +#: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_users__country_code +msgid "Country Code" +msgstr "" + +#. module: l10n_be_partner_kbo_bce +#: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_partner__kbo_bce_number +#: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_users__kbo_bce_number msgid "KBO/BCE Number" msgstr "Numéro BCE" + +#. module: l10n_be_partner_kbo_bce +#: code:addons/l10n_be_partner_kbo_bce/models/res_partner.py:0 +#, python-format +msgid "KBO/BCE Number '%s' is not consistent with VAT Number '%s'." +msgstr "" + +#. module: l10n_be_partner_kbo_bce +#: model:ir.model,name:l10n_be_partner_kbo_bce.model_res_partner_id_category +msgid "Partner ID Category" +msgstr "" + +#. module: l10n_be_partner_kbo_bce +#: model:ir.model.fields,help:l10n_be_partner_kbo_bce.field_res_partner__country_code +#: model:ir.model.fields,help:l10n_be_partner_kbo_bce.field_res_users__country_code +msgid "" +"The ISO country code in two chars. \n" +"You can use this field for quick search." +msgstr "" diff --git a/l10n_be_partner_kbo_bce/i18n/l10n_be_partner_kbo_bce.pot b/l10n_be_partner_kbo_bce/i18n/l10n_be_partner_kbo_bce.pot new file mode 100644 index 000000000..0dd7627a2 --- /dev/null +++ b/l10n_be_partner_kbo_bce/i18n/l10n_be_partner_kbo_bce.pot @@ -0,0 +1,61 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * l10n_be_partner_kbo_bce +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 13.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: l10n_be_partner_kbo_bce +#: model:res.partner.id_category,name:l10n_be_partner_kbo_bce.l10n_be_kbo_bce_number_category +msgid "Belgium KBO/BCE Number" +msgstr "" + +#. module: l10n_be_partner_kbo_bce +#: code:addons/l10n_be_partner_kbo_bce/models/res_partner.py:0 +#, python-format +msgid "Configuration Error, Country BE has not been defined !" +msgstr "" + +#. module: l10n_be_partner_kbo_bce +#: model:ir.model,name:l10n_be_partner_kbo_bce.model_res_partner +msgid "Contact" +msgstr "" + +#. module: l10n_be_partner_kbo_bce +#: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_partner__country_code +#: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_users__country_code +msgid "Country Code" +msgstr "" + +#. module: l10n_be_partner_kbo_bce +#: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_partner__kbo_bce_number +#: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_users__kbo_bce_number +msgid "KBO/BCE Number" +msgstr "" + +#. module: l10n_be_partner_kbo_bce +#: code:addons/l10n_be_partner_kbo_bce/models/res_partner.py:0 +#, python-format +msgid "KBO/BCE Number '%s' is not consistent with VAT Number '%s'." +msgstr "" + +#. module: l10n_be_partner_kbo_bce +#: model:ir.model,name:l10n_be_partner_kbo_bce.model_res_partner_id_category +msgid "Partner ID Category" +msgstr "" + +#. module: l10n_be_partner_kbo_bce +#: model:ir.model.fields,help:l10n_be_partner_kbo_bce.field_res_partner__country_code +#: model:ir.model.fields,help:l10n_be_partner_kbo_bce.field_res_users__country_code +msgid "" +"The ISO country code in two chars. \n" +"You can use this field for quick search." +msgstr "" diff --git a/l10n_be_partner_kbo_bce/i18n/nl.po b/l10n_be_partner_kbo_bce/i18n/nl.po index 2f5d03d8f..b26f3449e 100644 --- a/l10n_be_partner_kbo_bce/i18n/nl.po +++ b/l10n_be_partner_kbo_bce/i18n/nl.po @@ -10,13 +10,56 @@ msgstr "" "PO-Revision-Date: 2018-04-06 11:30:51.934000\n" "Last-Translator: Luc De Meyer (Noviat nv/sa)\n" "Language-Team: \n" +"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: nl\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: l10n_be_partner_kbo_bce -#: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_partner_kbo_bce_number +#: model:res.partner.id_category,name:l10n_be_partner_kbo_bce.l10n_be_kbo_bce_number_category +#, fuzzy +msgid "Belgium KBO/BCE Number" +msgstr "KBO Nummer" + +#. module: l10n_be_partner_kbo_bce +#: code:addons/l10n_be_partner_kbo_bce/models/res_partner.py:0 +#, python-format +msgid "Configuration Error, Country BE has not been defined !" +msgstr "" + +#. module: l10n_be_partner_kbo_bce +#: model:ir.model,name:l10n_be_partner_kbo_bce.model_res_partner +msgid "Contact" +msgstr "" + +#. module: l10n_be_partner_kbo_bce +#: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_partner__country_code +#: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_users__country_code +msgid "Country Code" +msgstr "" + +#. module: l10n_be_partner_kbo_bce +#: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_partner__kbo_bce_number +#: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_users__kbo_bce_number msgid "KBO/BCE Number" msgstr "KBO Nummer" + +#. module: l10n_be_partner_kbo_bce +#: code:addons/l10n_be_partner_kbo_bce/models/res_partner.py:0 +#, python-format +msgid "KBO/BCE Number '%s' is not consistent with VAT Number '%s'." +msgstr "" + +#. module: l10n_be_partner_kbo_bce +#: model:ir.model,name:l10n_be_partner_kbo_bce.model_res_partner_id_category +msgid "Partner ID Category" +msgstr "" + +#. module: l10n_be_partner_kbo_bce +#: model:ir.model.fields,help:l10n_be_partner_kbo_bce.field_res_partner__country_code +#: model:ir.model.fields,help:l10n_be_partner_kbo_bce.field_res_users__country_code +msgid "" +"The ISO country code in two chars. \n" +"You can use this field for quick search." +msgstr "" From f5a7cda2c96c6170ae78ee1f47251442d48a69d3 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Fri, 31 Jul 2020 15:11:56 +0000 Subject: [PATCH 05/27] [UPD] README.rst --- l10n_be_partner_kbo_bce/README.rst | 15 +- .../static/description/index.html | 425 ++++++++++++++++++ 2 files changed, 435 insertions(+), 5 deletions(-) create mode 100644 l10n_be_partner_kbo_bce/static/description/index.html diff --git a/l10n_be_partner_kbo_bce/README.rst b/l10n_be_partner_kbo_bce/README.rst index 6c1ad1305..0c84ec21e 100644 --- a/l10n_be_partner_kbo_bce/README.rst +++ b/l10n_be_partner_kbo_bce/README.rst @@ -14,13 +14,13 @@ Belgium - KBO/BCE numbers :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--belgium-lightgray.png?logo=github - :target: https://github.com/OCA/l10n-belgium/tree/12.0/l10n_be_partner_kbo_bce + :target: https://github.com/OCA/l10n-belgium/tree/13.0/l10n_be_partner_kbo_bce :alt: OCA/l10n-belgium .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/l10n-belgium-12-0/l10n-belgium-12-0-l10n_be_partner_kbo_bce + :target: https://translation.odoo-community.org/projects/l10n-belgium-13-0/l10n-belgium-13-0-l10n_be_partner_kbo_bce :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/119/12.0 + :target: https://runbot.odoo-community.org/runbot/119/13.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -44,13 +44,18 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. Credits ======= +Authors +~~~~~~~ + +* Noviat + Contributors ~~~~~~~~~~~~ @@ -69,6 +74,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -This module is part of the `OCA/l10n-belgium `_ project on GitHub. +This module is part of the `OCA/l10n-belgium `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/l10n_be_partner_kbo_bce/static/description/index.html b/l10n_be_partner_kbo_bce/static/description/index.html new file mode 100644 index 000000000..9e1af9a35 --- /dev/null +++ b/l10n_be_partner_kbo_bce/static/description/index.html @@ -0,0 +1,425 @@ + + + + + + +Belgium - KBO/BCE numbers + + + +
+

Belgium - KBO/BCE numbers

+ + +

Beta License: AGPL-3 OCA/l10n-belgium Translate me on Weblate Try me on Runbot

+

This module adds support for KBO/BCE numbers on partner records including a +consistency check with the VAT numbers.

+

Table of contents

+ +
+

Installation

+

There is no specific installation procedure for this module.

+
+
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Noviat
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

This module is part of the OCA/l10n-belgium project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + From eaaaac185b9ced4026b4ad1c056bfd21a1bad523 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Fri, 31 Jul 2020 15:11:57 +0000 Subject: [PATCH 06/27] l10n_be_partner_kbo_bce 13.0.1.0.1 --- l10n_be_partner_kbo_bce/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/l10n_be_partner_kbo_bce/__manifest__.py b/l10n_be_partner_kbo_bce/__manifest__.py index ae7805b6c..fe3297336 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": "13.0.1.0.0", + "version": "13.0.1.0.1", "license": "AGPL-3", "author": "Noviat,Odoo Community Association (OCA)", "website": "https://github.com/OCA/l10n-belgium", From 8d251ec22656c59e62a97bd123b78015136a3524 Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Fri, 16 Oct 2020 18:48:12 +0200 Subject: [PATCH 07/27] [13.0][IMP]remove unnecessary depends from l10n_be_partner_kbo_bce --- l10n_be_partner_kbo_bce/__manifest__.py | 4 ++-- l10n_be_partner_kbo_bce/models/res_partner.py | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/l10n_be_partner_kbo_bce/__manifest__.py b/l10n_be_partner_kbo_bce/__manifest__.py index fe3297336..5633eaa10 100644 --- a/l10n_be_partner_kbo_bce/__manifest__.py +++ b/l10n_be_partner_kbo_bce/__manifest__.py @@ -1,4 +1,4 @@ -# Copyright 2009-2019 Noviat. +# Copyright 2009-2020 Noviat. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { @@ -8,7 +8,7 @@ "license": "AGPL-3", "author": "Noviat,Odoo Community Association (OCA)", "website": "https://github.com/OCA/l10n-belgium", - "depends": ["partner_identification", "base_vat_sanitized"], + "depends": ["partner_identification"], "data": ["data/res_partner_id_category.xml", "views/res_partner.xml"], "demo": ["demo/res_partner.xml"], "installable": True, diff --git a/l10n_be_partner_kbo_bce/models/res_partner.py b/l10n_be_partner_kbo_bce/models/res_partner.py index bdb8ef492..61c2dcebe 100644 --- a/l10n_be_partner_kbo_bce/models/res_partner.py +++ b/l10n_be_partner_kbo_bce/models/res_partner.py @@ -95,9 +95,11 @@ def _get_belgium(self): def _sync_kbo_bce_number(self, sync_vals): be = self._get_belgium() - vat = sync_vals.get("vat") and self._sanitize_vat(sync_vals["vat"]) - kbn = sync_vals.get("kbo_bce_number") and sync_vals["kbo_bce_number"] country_id = sync_vals.get("country_id") and sync_vals["country_id"] + vat = sync_vals.get("vat") and self._fix_vat_number( + sync_vals["vat"], country_id + ) + kbn = sync_vals.get("kbo_bce_number") and sync_vals["kbo_bce_number"] has_kbo_bce_number = False if vat and vat[0:2] == "BE" and not kbn: @@ -124,7 +126,7 @@ def _sync_kbo_bce_number(self, sync_vals): kbn = sync_vals.get("kbo_bce_number") vat = sync_vals.get("vat") if kbn and vat: - if kbn.replace(".", "") != self._sanitize_vat(vat)[2:]: + 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) From a6f33f2e5a2565a6ce47ad8b68fa00878dce1903 Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Sun, 18 Oct 2020 20:10:07 +0200 Subject: [PATCH 08/27] add base_vat to depends --- l10n_be_partner_kbo_bce/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/l10n_be_partner_kbo_bce/__manifest__.py b/l10n_be_partner_kbo_bce/__manifest__.py index 5633eaa10..cc4a55547 100644 --- a/l10n_be_partner_kbo_bce/__manifest__.py +++ b/l10n_be_partner_kbo_bce/__manifest__.py @@ -8,7 +8,7 @@ "license": "AGPL-3", "author": "Noviat,Odoo Community Association (OCA)", "website": "https://github.com/OCA/l10n-belgium", - "depends": ["partner_identification"], + "depends": ["partner_identification", "base_vat"], "data": ["data/res_partner_id_category.xml", "views/res_partner.xml"], "demo": ["demo/res_partner.xml"], "installable": True, From 2b24f1f7c6af84ebc3fed40592aead208bfaa63f Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Mon, 11 Jan 2021 08:30:15 +0000 Subject: [PATCH 09/27] l10n_be_partner_kbo_bce 13.0.1.0.2 --- l10n_be_partner_kbo_bce/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/l10n_be_partner_kbo_bce/__manifest__.py b/l10n_be_partner_kbo_bce/__manifest__.py index cc4a55547..7bd97f117 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": "13.0.1.0.1", + "version": "13.0.1.0.2", "license": "AGPL-3", "author": "Noviat,Odoo Community Association (OCA)", "website": "https://github.com/OCA/l10n-belgium", From 0f1911236b869dbf1bc16cdbd736ab19e6ae7493 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Tue, 6 Apr 2021 17:35:06 +0200 Subject: [PATCH 10/27] Apply dotfiles --- l10n_be_partner_kbo_bce/models/res_partner.py | 1 - 1 file changed, 1 deletion(-) diff --git a/l10n_be_partner_kbo_bce/models/res_partner.py b/l10n_be_partner_kbo_bce/models/res_partner.py index 61c2dcebe..d10e612b9 100644 --- a/l10n_be_partner_kbo_bce/models/res_partner.py +++ b/l10n_be_partner_kbo_bce/models/res_partner.py @@ -147,4 +147,3 @@ def _update_kbo_bce_sync_vals(self, sync_vals): in case of 'create': empty self, sync_vals contains all vals in case of 'write': self contains partner record """ - pass From 69d7ddd3f1ebe8c5cea5c2f5c7680272881ac9a1 Mon Sep 17 00:00:00 2001 From: Stefan Rijnhart Date: Wed, 28 Apr 2021 09:23:43 +0200 Subject: [PATCH 11/27] [MIG] l10n_be_partner_kbo_bce: Migration to 14.0 --- l10n_be_partner_kbo_bce/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/l10n_be_partner_kbo_bce/__manifest__.py b/l10n_be_partner_kbo_bce/__manifest__.py index 7bd97f117..cbbbd0810 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": "13.0.1.0.2", + "version": "14.0.1.0.0", "license": "AGPL-3", "author": "Noviat,Odoo Community Association (OCA)", "website": "https://github.com/OCA/l10n-belgium", From dc5db476745868c77dfc92774c25569586d451ce Mon Sep 17 00:00:00 2001 From: oca-ci Date: Thu, 13 Jan 2022 19:24:13 +0000 Subject: [PATCH 12/27] [UPD] Update l10n_be_partner_kbo_bce.pot --- .../i18n/l10n_be_partner_kbo_bce.pot | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/l10n_be_partner_kbo_bce/i18n/l10n_be_partner_kbo_bce.pot b/l10n_be_partner_kbo_bce/i18n/l10n_be_partner_kbo_bce.pot index 0dd7627a2..f843a4319 100644 --- a/l10n_be_partner_kbo_bce/i18n/l10n_be_partner_kbo_bce.pot +++ b/l10n_be_partner_kbo_bce/i18n/l10n_be_partner_kbo_bce.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 13.0\n" +"Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" @@ -35,6 +35,18 @@ msgstr "" msgid "Country Code" msgstr "" +#. module: l10n_be_partner_kbo_bce +#: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_partner__display_name +#: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_partner_id_category__display_name +msgid "Display Name" +msgstr "" + +#. module: l10n_be_partner_kbo_bce +#: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_partner__id +#: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_partner_id_category__id +msgid "ID" +msgstr "" + #. module: l10n_be_partner_kbo_bce #: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_partner__kbo_bce_number #: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_users__kbo_bce_number @@ -47,6 +59,12 @@ msgstr "" msgid "KBO/BCE Number '%s' is not consistent with VAT Number '%s'." msgstr "" +#. module: l10n_be_partner_kbo_bce +#: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_partner____last_update +#: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_partner_id_category____last_update +msgid "Last Modified on" +msgstr "" + #. module: l10n_be_partner_kbo_bce #: model:ir.model,name:l10n_be_partner_kbo_bce.model_res_partner_id_category msgid "Partner ID Category" From 2250351f5d01fb3bc47c6101f24b40d918f49522 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Thu, 13 Jan 2022 19:26:44 +0000 Subject: [PATCH 13/27] [UPD] README.rst --- l10n_be_partner_kbo_bce/README.rst | 10 +++++----- l10n_be_partner_kbo_bce/static/description/index.html | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/l10n_be_partner_kbo_bce/README.rst b/l10n_be_partner_kbo_bce/README.rst index 0c84ec21e..586e811a4 100644 --- a/l10n_be_partner_kbo_bce/README.rst +++ b/l10n_be_partner_kbo_bce/README.rst @@ -14,13 +14,13 @@ Belgium - KBO/BCE numbers :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--belgium-lightgray.png?logo=github - :target: https://github.com/OCA/l10n-belgium/tree/13.0/l10n_be_partner_kbo_bce + :target: https://github.com/OCA/l10n-belgium/tree/14.0/l10n_be_partner_kbo_bce :alt: OCA/l10n-belgium .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/l10n-belgium-13-0/l10n-belgium-13-0-l10n_be_partner_kbo_bce + :target: https://translation.odoo-community.org/projects/l10n-belgium-14-0/l10n-belgium-14-0-l10n_be_partner_kbo_bce :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/119/13.0 + :target: https://runbot.odoo-community.org/runbot/119/14.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -44,7 +44,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -74,6 +74,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -This module is part of the `OCA/l10n-belgium `_ project on GitHub. +This module is part of the `OCA/l10n-belgium `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/l10n_be_partner_kbo_bce/static/description/index.html b/l10n_be_partner_kbo_bce/static/description/index.html index 9e1af9a35..cec298f70 100644 --- a/l10n_be_partner_kbo_bce/static/description/index.html +++ b/l10n_be_partner_kbo_bce/static/description/index.html @@ -367,7 +367,7 @@

Belgium - KBO/BCE numbers

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/l10n-belgium Translate me on Weblate Try me on Runbot

+

Beta License: AGPL-3 OCA/l10n-belgium Translate me on Weblate Try me on Runbot

This module adds support for KBO/BCE numbers on partner records including a consistency check with the VAT numbers.

Table of contents

@@ -392,7 +392,7 @@

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -feedback.

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -416,7 +416,7 @@

Maintainers

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

-

This module is part of the OCA/l10n-belgium project on GitHub.

+

This module is part of the OCA/l10n-belgium project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

From 36ecc603fd5ef27814b66207f0120d35f64a4794 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Thu, 13 Jan 2022 19:26:44 +0000 Subject: [PATCH 14/27] l10n_be_partner_kbo_bce 14.0.1.0.1 --- l10n_be_partner_kbo_bce/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/l10n_be_partner_kbo_bce/__manifest__.py b/l10n_be_partner_kbo_bce/__manifest__.py index cbbbd0810..232f7f054 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.0", + "version": "14.0.1.0.1", "license": "AGPL-3", "author": "Noviat,Odoo Community Association (OCA)", "website": "https://github.com/OCA/l10n-belgium", From 09947c325336aaa59a59b88c0196ad55b849bb56 Mon Sep 17 00:00:00 2001 From: Victor Champonnois Date: Mon, 28 Nov 2022 14:53:41 +0100 Subject: [PATCH 15/27] [MIG] l10n_be_partner_kbo_bce: Migration to 15.0 --- l10n_be_partner_kbo_bce/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/l10n_be_partner_kbo_bce/__manifest__.py b/l10n_be_partner_kbo_bce/__manifest__.py index 232f7f054..383651320 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.1", "license": "AGPL-3", "author": "Noviat,Odoo Community Association (OCA)", "website": "https://github.com/OCA/l10n-belgium", From f0532e41c520960e0d3bd7f3f1fcb066e314a5ee Mon Sep 17 00:00:00 2001 From: Victor Champonnois Date: Mon, 28 Nov 2022 14:56:09 +0100 Subject: [PATCH 16/27] [MIG] l10n_be_partner_kbo_bce: Migration to 16.0 --- l10n_be_partner_kbo_bce/__manifest__.py | 2 +- l10n_be_partner_kbo_bce/demo/res_partner.xml | 10 ++++------ l10n_be_partner_kbo_bce/models/res_partner.py | 8 ++++++-- .../tests/test_l10n_be_partner_kbo_bce.py | 2 +- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/l10n_be_partner_kbo_bce/__manifest__.py b/l10n_be_partner_kbo_bce/__manifest__.py index 383651320..8dbb86184 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": "15.0.1.0.1", + "version": "16.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..88095bc9c 100644 --- a/l10n_be_partner_kbo_bce/demo/res_partner.xml +++ b/l10n_be_partner_kbo_bce/demo/res_partner.xml @@ -1,12 +1,11 @@ - - + Noviat + name="category_id" + eval="[(6, 0, [ref('base.res_partner_category_8')])]" + /> 1 Brussel 1083 @@ -15,5 +14,4 @@ +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..a85903f68 100644 --- a/l10n_be_partner_kbo_bce/models/res_partner.py +++ b/l10n_be_partner_kbo_bce/models/res_partner.py @@ -128,8 +128,12 @@ 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)s' is not consistent with " + "VAT Number '%(vat)s'.", + kbn=kbn, + vat=vat, + ) ) # minimise overhead caused by sync of _commercial_fields diff --git a/l10n_be_partner_kbo_bce/tests/test_l10n_be_partner_kbo_bce.py b/l10n_be_partner_kbo_bce/tests/test_l10n_be_partner_kbo_bce.py index 24c0a0203..4e0df00db 100644 --- a/l10n_be_partner_kbo_bce/tests/test_l10n_be_partner_kbo_bce.py +++ b/l10n_be_partner_kbo_bce/tests/test_l10n_be_partner_kbo_bce.py @@ -32,7 +32,7 @@ def test_format_kbo_bce_number(self): rp = self.rp_1 rp.vat = "BE 0820 512 013" rp.kbo_bce_number = "0820512013" - rp.invalidate_cache(["kbo_bce_number"]) + rp.invalidate_recordset(["kbo_bce_number"]) self.assertEqual(rp.kbo_bce_number, "0820.512.013") def test_create_be_partner(self): From e08564454c0d737bafa43d467f192a7127628378 Mon Sep 17 00:00:00 2001 From: Victor Champonnois Date: Thu, 13 Jul 2023 14:34:29 +0200 Subject: [PATCH 17/27] fixup --- l10n_be_partner_kbo_bce/tests/test_l10n_be_partner_kbo_bce.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/l10n_be_partner_kbo_bce/tests/test_l10n_be_partner_kbo_bce.py b/l10n_be_partner_kbo_bce/tests/test_l10n_be_partner_kbo_bce.py index 4e0df00db..00bb7f82a 100644 --- a/l10n_be_partner_kbo_bce/tests/test_l10n_be_partner_kbo_bce.py +++ b/l10n_be_partner_kbo_bce/tests/test_l10n_be_partner_kbo_bce.py @@ -7,7 +7,7 @@ class TestKboBceNumber(TransactionCase): def setUp(self): - super(TestKboBceNumber, self).setUp() + super().setUp() self.rp_1 = self.env.ref("l10n_be_partner_kbo_bce.res_partner_1") self.be = self.env.ref("base.be") From 5f75e86629549a75ac392a7c8240691d1404b344 Mon Sep 17 00:00:00 2001 From: oca-ci Date: Wed, 19 Jul 2023 15:06:33 +0000 Subject: [PATCH 18/27] [UPD] Update l10n_be_partner_kbo_bce.pot --- .../i18n/l10n_be_partner_kbo_bce.pot | 24 ++++--------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/l10n_be_partner_kbo_bce/i18n/l10n_be_partner_kbo_bce.pot b/l10n_be_partner_kbo_bce/i18n/l10n_be_partner_kbo_bce.pot index f843a4319..cd8dbd294 100644 --- a/l10n_be_partner_kbo_bce/i18n/l10n_be_partner_kbo_bce.pot +++ b/l10n_be_partner_kbo_bce/i18n/l10n_be_partner_kbo_bce.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 14.0\n" +"Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" @@ -19,6 +19,7 @@ msgid "Belgium KBO/BCE Number" msgstr "" #. module: l10n_be_partner_kbo_bce +#. odoo-python #: code:addons/l10n_be_partner_kbo_bce/models/res_partner.py:0 #, python-format msgid "Configuration Error, Country BE has not been defined !" @@ -35,18 +36,6 @@ msgstr "" msgid "Country Code" msgstr "" -#. module: l10n_be_partner_kbo_bce -#: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_partner__display_name -#: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_partner_id_category__display_name -msgid "Display Name" -msgstr "" - -#. module: l10n_be_partner_kbo_bce -#: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_partner__id -#: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_partner_id_category__id -msgid "ID" -msgstr "" - #. module: l10n_be_partner_kbo_bce #: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_partner__kbo_bce_number #: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_users__kbo_bce_number @@ -54,15 +43,10 @@ msgid "KBO/BCE Number" msgstr "" #. module: l10n_be_partner_kbo_bce +#. odoo-python #: code:addons/l10n_be_partner_kbo_bce/models/res_partner.py:0 #, python-format -msgid "KBO/BCE Number '%s' is not consistent with VAT Number '%s'." -msgstr "" - -#. module: l10n_be_partner_kbo_bce -#: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_partner____last_update -#: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_partner_id_category____last_update -msgid "Last Modified on" +msgid "KBO/BCE Number '%(kbn)s' is not consistent with VAT Number '%(vat)s'." msgstr "" #. module: l10n_be_partner_kbo_bce From aeb90271937d841ddd6d14f4c07f0cb06537920f Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Wed, 19 Jul 2023 15:09:42 +0000 Subject: [PATCH 19/27] [UPD] README.rst --- l10n_be_partner_kbo_bce/README.rst | 10 +++++----- l10n_be_partner_kbo_bce/static/description/index.html | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/l10n_be_partner_kbo_bce/README.rst b/l10n_be_partner_kbo_bce/README.rst index 586e811a4..3b5544a41 100644 --- a/l10n_be_partner_kbo_bce/README.rst +++ b/l10n_be_partner_kbo_bce/README.rst @@ -14,13 +14,13 @@ Belgium - KBO/BCE numbers :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--belgium-lightgray.png?logo=github - :target: https://github.com/OCA/l10n-belgium/tree/14.0/l10n_be_partner_kbo_bce + :target: https://github.com/OCA/l10n-belgium/tree/16.0/l10n_be_partner_kbo_bce :alt: OCA/l10n-belgium .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/l10n-belgium-14-0/l10n-belgium-14-0-l10n_be_partner_kbo_bce + :target: https://translation.odoo-community.org/projects/l10n-belgium-16-0/l10n-belgium-16-0-l10n_be_partner_kbo_bce :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/119/14.0 + :target: https://runbot.odoo-community.org/runbot/119/16.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -44,7 +44,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -74,6 +74,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -This module is part of the `OCA/l10n-belgium `_ project on GitHub. +This module is part of the `OCA/l10n-belgium `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/l10n_be_partner_kbo_bce/static/description/index.html b/l10n_be_partner_kbo_bce/static/description/index.html index cec298f70..4a0b8f0df 100644 --- a/l10n_be_partner_kbo_bce/static/description/index.html +++ b/l10n_be_partner_kbo_bce/static/description/index.html @@ -367,7 +367,7 @@

Belgium - KBO/BCE numbers

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/l10n-belgium Translate me on Weblate Try me on Runbot

+

Beta License: AGPL-3 OCA/l10n-belgium Translate me on Weblate Try me on Runbot

This module adds support for KBO/BCE numbers on partner records including a consistency check with the VAT numbers.

Table of contents

@@ -392,7 +392,7 @@

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -feedback.

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -416,7 +416,7 @@

Maintainers

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

-

This module is part of the OCA/l10n-belgium project on GitHub.

+

This module is part of the OCA/l10n-belgium project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

From e3c64fa0f2d36bfac32852da2266d4b1230a8a83 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Wed, 19 Jul 2023 15:09:43 +0000 Subject: [PATCH 20/27] l10n_be_partner_kbo_bce 16.0.1.0.1 --- l10n_be_partner_kbo_bce/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/l10n_be_partner_kbo_bce/__manifest__.py b/l10n_be_partner_kbo_bce/__manifest__.py index 8dbb86184..ff5db0165 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": "16.0.1.0.0", + "version": "16.0.1.0.1", "license": "AGPL-3", "author": "Noviat,Odoo Community Association (OCA)", "website": "https://github.com/OCA/l10n-belgium", From 4a922c2dede40f11fcedb7d3a322444289aa4f85 Mon Sep 17 00:00:00 2001 From: Weblate Date: Wed, 19 Jul 2023 15:18:06 +0000 Subject: [PATCH 21/27] Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: l10n-belgium-16.0/l10n-belgium-16.0-l10n_be_partner_kbo_bce Translate-URL: https://translation.odoo-community.org/projects/l10n-belgium-16-0/l10n-belgium-16-0-l10n_be_partner_kbo_bce/ --- l10n_be_partner_kbo_bce/i18n/fr.po | 4 +++- l10n_be_partner_kbo_bce/i18n/nl.po | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/l10n_be_partner_kbo_bce/i18n/fr.po b/l10n_be_partner_kbo_bce/i18n/fr.po index 3714801ae..9b5bc1ede 100644 --- a/l10n_be_partner_kbo_bce/i18n/fr.po +++ b/l10n_be_partner_kbo_bce/i18n/fr.po @@ -23,6 +23,7 @@ msgid "Belgium KBO/BCE Number" msgstr "Numéro BCE" #. module: l10n_be_partner_kbo_bce +#. odoo-python #: code:addons/l10n_be_partner_kbo_bce/models/res_partner.py:0 #, python-format msgid "Configuration Error, Country BE has not been defined !" @@ -46,9 +47,10 @@ msgid "KBO/BCE Number" msgstr "Numéro BCE" #. module: l10n_be_partner_kbo_bce +#. odoo-python #: code:addons/l10n_be_partner_kbo_bce/models/res_partner.py:0 #, python-format -msgid "KBO/BCE Number '%s' is not consistent with VAT Number '%s'." +msgid "KBO/BCE Number '%(kbn)s' is not consistent with VAT Number '%(vat)s'." msgstr "" #. module: l10n_be_partner_kbo_bce diff --git a/l10n_be_partner_kbo_bce/i18n/nl.po b/l10n_be_partner_kbo_bce/i18n/nl.po index b26f3449e..87e300c93 100644 --- a/l10n_be_partner_kbo_bce/i18n/nl.po +++ b/l10n_be_partner_kbo_bce/i18n/nl.po @@ -23,6 +23,7 @@ msgid "Belgium KBO/BCE Number" msgstr "KBO Nummer" #. module: l10n_be_partner_kbo_bce +#. odoo-python #: code:addons/l10n_be_partner_kbo_bce/models/res_partner.py:0 #, python-format msgid "Configuration Error, Country BE has not been defined !" @@ -46,9 +47,10 @@ msgid "KBO/BCE Number" msgstr "KBO Nummer" #. module: l10n_be_partner_kbo_bce +#. odoo-python #: code:addons/l10n_be_partner_kbo_bce/models/res_partner.py:0 #, python-format -msgid "KBO/BCE Number '%s' is not consistent with VAT Number '%s'." +msgid "KBO/BCE Number '%(kbn)s' is not consistent with VAT Number '%(vat)s'." msgstr "" #. module: l10n_be_partner_kbo_bce From 77244d2820a32c9f6a50c68bc61fa3ee0e229a69 Mon Sep 17 00:00:00 2001 From: Ivorra78 Date: Sun, 6 Aug 2023 11:29:04 +0000 Subject: [PATCH 22/27] Added translation using Weblate (Spanish) --- l10n_be_partner_kbo_bce/i18n/es.po | 64 ++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 l10n_be_partner_kbo_bce/i18n/es.po diff --git a/l10n_be_partner_kbo_bce/i18n/es.po b/l10n_be_partner_kbo_bce/i18n/es.po new file mode 100644 index 000000000..8a1a6770c --- /dev/null +++ b/l10n_be_partner_kbo_bce/i18n/es.po @@ -0,0 +1,64 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * l10n_be_partner_kbo_bce +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" + +#. module: l10n_be_partner_kbo_bce +#: model:res.partner.id_category,name:l10n_be_partner_kbo_bce.l10n_be_kbo_bce_number_category +msgid "Belgium KBO/BCE Number" +msgstr "" + +#. module: l10n_be_partner_kbo_bce +#. odoo-python +#: code:addons/l10n_be_partner_kbo_bce/models/res_partner.py:0 +#, python-format +msgid "Configuration Error, Country BE has not been defined !" +msgstr "" + +#. module: l10n_be_partner_kbo_bce +#: model:ir.model,name:l10n_be_partner_kbo_bce.model_res_partner +msgid "Contact" +msgstr "" + +#. module: l10n_be_partner_kbo_bce +#: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_partner__country_code +#: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_users__country_code +msgid "Country Code" +msgstr "" + +#. module: l10n_be_partner_kbo_bce +#: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_partner__kbo_bce_number +#: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_users__kbo_bce_number +msgid "KBO/BCE Number" +msgstr "" + +#. module: l10n_be_partner_kbo_bce +#. odoo-python +#: code:addons/l10n_be_partner_kbo_bce/models/res_partner.py:0 +#, python-format +msgid "KBO/BCE Number '%(kbn)s' is not consistent with VAT Number '%(vat)s'." +msgstr "" + +#. module: l10n_be_partner_kbo_bce +#: model:ir.model,name:l10n_be_partner_kbo_bce.model_res_partner_id_category +msgid "Partner ID Category" +msgstr "" + +#. module: l10n_be_partner_kbo_bce +#: model:ir.model.fields,help:l10n_be_partner_kbo_bce.field_res_partner__country_code +#: model:ir.model.fields,help:l10n_be_partner_kbo_bce.field_res_users__country_code +msgid "" +"The ISO country code in two chars. \n" +"You can use this field for quick search." +msgstr "" From f33f2b73b3975ca0209136213ea9715e30114eb8 Mon Sep 17 00:00:00 2001 From: Ivorra78 Date: Sun, 6 Aug 2023 11:42:59 +0000 Subject: [PATCH 23/27] Translated using Weblate (Spanish) Currently translated at 100.0% (8 of 8 strings) Translation: l10n-belgium-16.0/l10n-belgium-16.0-l10n_be_partner_kbo_bce Translate-URL: https://translation.odoo-community.org/projects/l10n-belgium-16-0/l10n-belgium-16-0-l10n_be_partner_kbo_bce/es/ --- l10n_be_partner_kbo_bce/i18n/es.po | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/l10n_be_partner_kbo_bce/i18n/es.po b/l10n_be_partner_kbo_bce/i18n/es.po index 8a1a6770c..6fff1500b 100644 --- a/l10n_be_partner_kbo_bce/i18n/es.po +++ b/l10n_be_partner_kbo_bce/i18n/es.po @@ -6,42 +6,44 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2023-08-06 13:11+0000\n" +"Last-Translator: Ivorra78 \n" "Language-Team: none\n" "Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.17\n" #. module: l10n_be_partner_kbo_bce #: model:res.partner.id_category,name:l10n_be_partner_kbo_bce.l10n_be_kbo_bce_number_category msgid "Belgium KBO/BCE Number" -msgstr "" +msgstr "Bélgica Número KBO/BCE" #. module: l10n_be_partner_kbo_bce #. odoo-python #: code:addons/l10n_be_partner_kbo_bce/models/res_partner.py:0 #, python-format msgid "Configuration Error, Country BE has not been defined !" -msgstr "" +msgstr "Error de configuración, ¡no se ha definido el país BE!" #. module: l10n_be_partner_kbo_bce #: model:ir.model,name:l10n_be_partner_kbo_bce.model_res_partner msgid "Contact" -msgstr "" +msgstr "Contacto" #. module: l10n_be_partner_kbo_bce #: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_partner__country_code #: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_users__country_code msgid "Country Code" -msgstr "" +msgstr "Código del país" #. module: l10n_be_partner_kbo_bce #: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_partner__kbo_bce_number #: model:ir.model.fields,field_description:l10n_be_partner_kbo_bce.field_res_users__kbo_bce_number msgid "KBO/BCE Number" -msgstr "" +msgstr "Número KBO/BCE" #. module: l10n_be_partner_kbo_bce #. odoo-python @@ -49,11 +51,12 @@ msgstr "" #, python-format msgid "KBO/BCE Number '%(kbn)s' is not consistent with VAT Number '%(vat)s'." msgstr "" +"El número KBO/BCE \"%(kbn)s\" no coincide con el número de IVA \"%(vat)s\"." #. module: l10n_be_partner_kbo_bce #: model:ir.model,name:l10n_be_partner_kbo_bce.model_res_partner_id_category msgid "Partner ID Category" -msgstr "" +msgstr "Categoría ID de socio" #. module: l10n_be_partner_kbo_bce #: model:ir.model.fields,help:l10n_be_partner_kbo_bce.field_res_partner__country_code @@ -62,3 +65,5 @@ msgid "" "The ISO country code in two chars. \n" "You can use this field for quick search." msgstr "" +"El código ISO del país en dos caracteres. \n" +"Puede utilizar este campo para una búsqueda rápida." From eaebee69973ab78275f84683ed562c14e4f46d2c Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Sun, 3 Sep 2023 13:22:59 +0000 Subject: [PATCH 24/27] [UPD] README.rst --- l10n_be_partner_kbo_bce/README.rst | 15 +++++--- .../static/description/index.html | 38 ++++++++++--------- 2 files changed, 29 insertions(+), 24 deletions(-) diff --git a/l10n_be_partner_kbo_bce/README.rst b/l10n_be_partner_kbo_bce/README.rst index 3b5544a41..c44edc192 100644 --- a/l10n_be_partner_kbo_bce/README.rst +++ b/l10n_be_partner_kbo_bce/README.rst @@ -2,10 +2,13 @@ Belgium - KBO/BCE numbers ========================= -.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:c44269b9a5e508ed0bd48298598c63eb405784d43a2a614a31f95e2156ed1a23 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png :target: https://odoo-community.org/page/development-status @@ -19,11 +22,11 @@ Belgium - KBO/BCE numbers .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png :target: https://translation.odoo-community.org/projects/l10n-belgium-16-0/l10n-belgium-16-0-l10n_be_partner_kbo_bce :alt: Translate me on Weblate -.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/119/16.0 - :alt: Try me on Runbot +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-belgium&target_branch=16.0 + :alt: Try me on Runboat -|badge1| |badge2| |badge3| |badge4| |badge5| +|badge1| |badge2| |badge3| |badge4| |badge5| This module adds support for KBO/BCE numbers on partner records including a consistency check with the VAT numbers. @@ -43,7 +46,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. -If you spotted it first, help us smashing it by providing a detailed and welcomed +If you spotted it first, help us to smash it by providing a detailed and welcomed `feedback `_. Do not contact contributors directly about support or help with technical issues. diff --git a/l10n_be_partner_kbo_bce/static/description/index.html b/l10n_be_partner_kbo_bce/static/description/index.html index 4a0b8f0df..8eabdde54 100644 --- a/l10n_be_partner_kbo_bce/static/description/index.html +++ b/l10n_be_partner_kbo_bce/static/description/index.html @@ -1,20 +1,20 @@ - + - + Belgium - KBO/BCE numbers