Skip to content

Commit

Permalink
Merge PR #318 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by victor-champonnois
  • Loading branch information
github-grap-bot committed Apr 29, 2024
2 parents e99dc87 + 8d0aef7 commit 312d1a5
Show file tree
Hide file tree
Showing 10 changed files with 540 additions and 0 deletions.
63 changes: 63 additions & 0 deletions l10n_be_national_number/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
=========================
Belgium - National Number
=========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:c62a811464aa978a3fd6b62a70ba6f765704028094283ca84edacc39627a72ad
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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-coopiteasy%2Faddons-lightgray.png?logo=github
:target: https://github.com/coopiteasy/addons/tree/16.0/l10n_be_national_number
:alt: coopiteasy/addons

|badge1| |badge2| |badge3|

Emptied/

**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/coopiteasy/addons/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/coopiteasy/addons/issues/new?body=module:%20l10n_be_national_number%0Aversion:%2016.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
~~~~~~~

* Coop IT Easy SC

Maintainers
~~~~~~~~~~~

.. |maintainer-victor-champonnois| image:: https://github.com/victor-champonnois.png?size=40px
:target: https://github.com/victor-champonnois
:alt: victor-champonnois

Current maintainer:

|maintainer-victor-champonnois|

This module is part of the `coopiteasy/addons <https://github.com/coopiteasy/addons/tree/16.0/l10n_be_national_number>`_ project on GitHub.

You are welcome to contribute.
3 changes: 3 additions & 0 deletions l10n_be_national_number/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# SPDX-FileCopyrightText: 2023 Coop IT Easy SC
#
# SPDX-License-Identifier: AGPL-3.0-or-later
22 changes: 22 additions & 0 deletions l10n_be_national_number/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# SPDX-FileCopyrightText: 2023 Coop IT Easy SC
#
# SPDX-License-Identifier: AGPL-3.0-or-later

{
"name": "Belgium - National Number",
"summary": """
Emptied.""",
"version": "16.0.2.0.0",
"category": "Contact",
"website": "https://github.com/coopiteasy/addons",
"author": "Coop IT Easy SC, Odoo Community Association (OCA)",
"maintainers": ["victor-champonnois"],
"license": "AGPL-3",
"application": False,
"depends": [
"l10n_be_partner_identification",
],
"excludes": [],
"demo": [],
"qweb": [],
}
19 changes: 19 additions & 0 deletions l10n_be_national_number/i18n/l10n_be_national_number.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_be_national_number
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.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_national_number
#: model:res.partner.id_category,name:l10n_be_national_number.l10n_be_national_number_category
msgid "Belgium National Number"
msgstr ""
15 changes: 15 additions & 0 deletions l10n_be_national_number/migrations/16.0.2.0.0/pre-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from openupgradelib import openupgrade


@openupgrade.migrate()
def migrate(env, version):
old_id = env.ref("l10n_be_national_number.l10n_be_national_number_category").id
new_id = env.ref(
"l10n_be_partner_identification.l10n_be_national_registry_number_category"
).id
id_numbers = (
env["res.partner.id_number"]
.with_context(active_test=False)
.search([("category_id", "=", old_id)])
)
id_numbers.write({"category_id": new_id})
1 change: 1 addition & 0 deletions l10n_be_national_number/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Emptied/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 312d1a5

Please sign in to comment.