Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][MIG] l10n_be_national_number #318

Open
wants to merge 14 commits into
base: 16.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading