Skip to content

Commit

Permalink
Merge PR #219 into 17.0
Browse files Browse the repository at this point in the history
Signed-off-by luc-demeyer
  • Loading branch information
OCA-git-bot committed Aug 31, 2024
2 parents 3cd6142 + 736acc9 commit a39dc3f
Show file tree
Hide file tree
Showing 23 changed files with 1,059 additions and 1 deletion.
2 changes: 1 addition & 1 deletion companyweb_payment_info/tests/test_cweb_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def test_upload_payment(self):
self.demo_user
)._cweb_payment_info_step1()

self.env.user.company_id.vat = "FR0835207216"
self.env.user.company_id.vat = "FR23334175221"

# UserError bad on users's company
with self.assertRaises(UserError):
Expand Down
82 changes: 82 additions & 0 deletions l10n_be_partner_kbo_bce/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
=========================
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
: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/17.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-17-0/l10n-belgium-17-0-l10n_be_partner_kbo_bce
:alt: Translate me on Weblate
.. |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=17.0
:alt: Try me on Runboat

|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 <https://github.com/OCA/l10n-belgium/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/l10n-belgium/issues/new?body=module:%20l10n_be_partner_kbo_bce%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
-------

* Noviat

Contributors
------------

- Luc De Meyer <[email protected]>

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 <https://github.com/OCA/l10n-belgium/tree/17.0/l10n_be_partner_kbo_bce>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions l10n_be_partner_kbo_bce/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
15 changes: 15 additions & 0 deletions l10n_be_partner_kbo_bce/__manifest__.py
Original file line number Diff line number Diff line change
@@ -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": "17.0.1.0.0",
"license": "AGPL-3",
"author": "Noviat,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-belgium",
"depends": ["partner_identification", "base_vat"],
"data": ["data/res_partner_id_category.xml", "views/res_partner.xml"],
"demo": ["demo/res_partner.xml"],
"installable": True,
}
10 changes: 10 additions & 0 deletions l10n_be_partner_kbo_bce/data/res_partner_id_category.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="l10n_be_kbo_bce_number_category" model="res.partner.id_category">
<field name="code">l10n_be_kbo_bce</field>
<field name="name">Belgium KBO/BCE Number</field>
<field
name="validation_code"
>failed = self.validate_l10n_be_partner_kbo_bce(id_number)</field>
</record>
</odoo>
17 changes: 17 additions & 0 deletions l10n_be_partner_kbo_bce/demo/res_partner.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8" ?>
<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')])]"
/>
<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>
69 changes: 69 additions & 0 deletions l10n_be_partner_kbo_bce/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# 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"
"PO-Revision-Date: 2023-08-06 13:11+0000\n"
"Last-Translator: Ivorra78 <[email protected]>\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 "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 "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 "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 "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 "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 "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 "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
#: 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 ""
"El código ISO del país en dos caracteres. \n"
"Puede utilizar este campo para una búsqueda rápida."
67 changes: 67 additions & 0 deletions l10n_be_partner_kbo_bce/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# 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"
"Language: fr\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
#, fuzzy
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 !"
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
#. 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 ""
63 changes: 63 additions & 0 deletions l10n_be_partner_kbo_bce/i18n/l10n_be_partner_kbo_bce.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# 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: \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
#. 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 ""
Loading

0 comments on commit a39dc3f

Please sign in to comment.