Skip to content

Commit 4187131

Browse files
committed
Merge PR #57 into 18.0
Signed-off-by ValentinVinagre
2 parents e9ae6a0 + c6206d7 commit 4187131

13 files changed

Lines changed: 652 additions & 0 deletions

File tree

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
====================================
2+
Partner Contact Old Migration Fields
3+
====================================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:fb1514a832c87a03f3789826b8f4c7b45019b45d1f424634c30a57880ba2edf5
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-sygel--technology%2Fsy--partner--contact-lightgray.png?logo=github
20+
:target: https://github.com/sygel-technology/sy-partner-contact/tree/18.0/partner_contact_old_migration_fields
21+
:alt: sygel-technology/sy-partner-contact
22+
23+
|badge1| |badge2| |badge3|
24+
25+
This module extends the base_old_migration_fields functionality by
26+
adding specific fields to store original contact (partner) data from
27+
previous systems or older Odoo versions.
28+
29+
**Table of contents**
30+
31+
.. contents::
32+
:local:
33+
34+
Usage
35+
=====
36+
37+
To use this module:
38+
39+
1. Make sure the user belongs to the **Old Migration Fields Manager**
40+
group (configured via the base_old_migration_fields module).
41+
2. Go to the **Contacts** module.
42+
3. Open or create a contact record.
43+
4. Navigate to the **Migration Info** tab.
44+
5. Fill in or review the old system values (e.g., previous IDs or legacy
45+
codes).
46+
47+
This information is stored separately and does not affect the functional
48+
behavior of the contact. It is intended purely for migration tracking,
49+
audit, or synchronization purposes.
50+
51+
Bug Tracker
52+
===========
53+
54+
Bugs are tracked on `GitHub Issues <https://github.com/sygel-technology/sy-partner-contact/issues>`_.
55+
In case of trouble, please check there if your issue has already been reported.
56+
If you spotted it first, help us to smash it by providing a detailed and welcomed
57+
`feedback <https://github.com/sygel-technology/sy-partner-contact/issues/new?body=module:%20partner_contact_old_migration_fields%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
58+
59+
Do not contact contributors directly about support or help with technical issues.
60+
61+
Credits
62+
=======
63+
64+
Authors
65+
-------
66+
67+
* Sygel
68+
69+
Contributors
70+
------------
71+
72+
- `Sygel <https://www.sygel.es>`__:
73+
74+
- Ángel García de la Chica Herrera
75+
76+
Maintainers
77+
-----------
78+
79+
This module is part of the `sygel-technology/sy-partner-contact <https://github.com/sygel-technology/sy-partner-contact/tree/18.0/partner_contact_old_migration_fields>`_ project on GitHub.
80+
81+
You are welcome to contribute.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copyright 2023 Ángel García de la Chica Herrera<angel.garcia@sygel.es>
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
4+
from . import models
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright 2023 Ángel García de la Chica <angel.garcia@sygel.es>
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
4+
{
5+
"name": "Partner Contact Old Migration Fields",
6+
"summary": "Partner Contact Old Migration Fields",
7+
"version": "18.0.1.0.0",
8+
"category": "Contact",
9+
"website": "https://github.com/sygel-technology/sy-partner-contact",
10+
"author": "Sygel, Odoo Community Association (OCA)",
11+
"license": "AGPL-3",
12+
"application": False,
13+
"installable": True,
14+
"depends": ["base", "contacts", "base_old_migration_fields"],
15+
"data": [
16+
"views/res_partner_views.xml",
17+
],
18+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * partner_contact_old_migration_fields
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 16.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2024-01-04 12:40+0000\n"
10+
"PO-Revision-Date: 2024-01-04 13:42+0100\n"
11+
"Last-Translator: \n"
12+
"Language-Team: \n"
13+
"Language: es\n"
14+
"MIME-Version: 1.0\n"
15+
"Content-Type: text/plain; charset=UTF-8\n"
16+
"Content-Transfer-Encoding: 8bit\n"
17+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
18+
"X-Generator: Poedit 3.4.2\n"
19+
20+
#. module: partner_contact_old_migration_fields
21+
#: model:ir.model,name:partner_contact_old_migration_fields.model_res_partner
22+
msgid "Contact"
23+
msgstr "Contacto"
24+
25+
#. module: partner_contact_old_migration_fields
26+
#: model_terms:ir.ui.view,arch_db:partner_contact_old_migration_fields.partner_contact_old_migration_fields_view_partner_form
27+
msgid "Migration Info"
28+
msgstr "Información de migración"
29+
30+
#. module: partner_contact_old_migration_fields
31+
#: model:ir.model.fields,field_description:partner_contact_old_migration_fields.field_res_partner__old_partner_id
32+
#: model:ir.model.fields,field_description:partner_contact_old_migration_fields.field_res_users__old_partner_id
33+
msgid "Old Partner ID"
34+
msgstr "Antigua ID del contacto"
35+
36+
#. module: partner_contact_old_migration_fields
37+
#: model:ir.model.fields,field_description:partner_contact_old_migration_fields.field_res_partner__old_partner_parent_id
38+
#: model:ir.model.fields,field_description:partner_contact_old_migration_fields.field_res_users__old_partner_parent_id
39+
msgid "Old Partner Parent ID"
40+
msgstr "Antigua ID del contacto padre"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copyright 2023 Ángel García de la Chica Herrera <angel.garcia@sygel.es>
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
4+
from . import res_partner
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright 2023 Ángel García de la Chica Herrera <angel.garcia@sygel.es>
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
4+
from odoo import fields, models
5+
6+
7+
class Partner(models.Model):
8+
_inherit = "res.partner"
9+
10+
old_partner_id = fields.Integer(
11+
string="Old Partner ID",
12+
)
13+
old_partner_parent_id = fields.Integer(
14+
string="Old Partner Parent ID",
15+
)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- [Sygel](https://www.sygel.es):
2+
- Ángel García de la Chica Herrera
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This module extends the base_old_migration_fields functionality by adding specific fields to store original contact (partner) data from previous systems or older Odoo versions.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
To use this module:
2+
3+
1. Make sure the user belongs to the **Old Migration Fields Manager** group (configured via the base_old_migration_fields module).
4+
2. Go to the **Contacts** module.
5+
3. Open or create a contact record.
6+
4. Navigate to the **Migration Info** tab.
7+
5. Fill in or review the old system values (e.g., previous IDs or legacy codes).
8+
9+
This information is stored separately and does not affect the functional behavior of the contact. It is intended purely for migration tracking, audit, or synchronization purposes.

0 commit comments

Comments
 (0)