Commit Graph

124 Commits

Author SHA1 Message Date
Jairo Llopis
2fb7932ff1 base_import_match: Import deduplicator.
By default, when importing data (like CSV import) with the ``base_import``
module, Odoo follows this rule:

1. If you import the XMLID of a record, make an **update**.
2. If you do not, **create** a new record.

This module allows you to set additional rules to match if a given import is an
update or a new record.

This is useful when you need to sync heterogeneous databases, and the field you
use to match records in those databases with Odoo's is not the XMLID but the
name, VAT, email, etc.

After installing this module, the import logic will be changed to:

1. If you import the XMLID of a record, make an **update**.
2. If you do not:
   1. If there are import match rules for the model you are importing:
       1. Discard the rules that require fields you are not importing.
       2. Traverse the remaining rules one by one in order to find a match in
          the database.
          1. If one match is found:
             1. Stop traversing the rest of valid rules.
             2. **Update** that record.
          2. If zero or multiple matches are found:
             1. Continue with the next rule.
          3. If all rules are exhausted and no single match is found:
             1. **Create** a new record.
   2. If there are no match rules for your model:
      1. **Create** a new record.
2023-03-22 15:22:51 +01:00
beau sebastien
dd34c2e8a0 Merge pull request #206 from akretion/16-copier-update
UPD copier config
2023-03-03 15:32:55 +01:00
David Beal
e9032aa39f UPD copier config 2023-03-03 15:17:42 +01:00
Weblate
ea3edcac6f Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-backend-16.0/server-backend-16.0-base_user_role_history
Translate-URL: https://translation.odoo-community.org/projects/server-backend-16-0/server-backend-16-0-base_user_role_history/
2023-01-26 12:08:41 +00:00
Weblate
dce74a1a4c Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-backend-16.0/server-backend-16.0-base_user_role
Translate-URL: https://translation.odoo-community.org/projects/server-backend-16-0/server-backend-16-0-base_user_role/
2023-01-26 11:42:11 +00:00
OCA-git-bot
6beaaa9151 [ADD] setup.py 2023-01-26 11:42:02 +00:00
OCA-git-bot
2f0e9b4839 [UPD] README.rst 2023-01-26 11:42:02 +00:00
OCA-git-bot
1e0af9aea8 [UPD] addons table in README.md 2023-01-26 11:42:01 +00:00
oca-ci
9841152136 [UPD] Update base_user_role_history.pot 2023-01-26 11:38:22 +00:00
oca-ci
65f8bd5052 [UPD] Update base_user_role.pot 2023-01-26 11:38:21 +00:00
OCA-git-bot
235228a60b Merge PR #186 into 16.0
Signed-off-by sebalix
2023-01-26 11:36:23 +00:00
Arnaud Pineux
842fca200f [MIG] base_user_role_history: Migration to 16.0 2023-01-24 09:59:01 +01:00
Ana Suárez
c0ecb18e51 Translated using Weblate (Spanish)
Currently translated at 100.0% (29 of 29 strings)

Translation: server-backend-13.0/server-backend-13.0-base_user_role_history
Translate-URL: https://translation.odoo-community.org/projects/server-backend-13-0/server-backend-13-0-base_user_role_history/es/
2023-01-24 09:12:12 +01:00
Ana Suárez
4f0f5cde7d Added translation using Weblate (Spanish) 2023-01-24 09:12:06 +01:00
OCA-git-bot
9a4c1eb744 [UPD] README.rst 2023-01-24 09:12:00 +01:00
oca-travis
df21cb484f [UPD] Update base_user_role_history.pot 2023-01-24 09:11:54 +01:00
Benoit Aimont
0a2d1def56 [FIX] base_user_role_history - prettier xml plugin 2023-01-24 09:11:48 +01:00
Benoit Aimont
5bf6cab02e [MIG] base_user_role_history: Migration to 13.0 2023-01-24 09:11:42 +01:00
Benoit Aimont
c3cd270067 [IMP] base_user_role_history: black, isort 2023-01-24 09:11:36 +01:00
OCA-git-bot
e0ffc2c3cd [ADD] icon.png 2023-01-24 09:11:30 +01:00
OCA-git-bot
9b52525f4a [UPD] README.rst 2023-01-24 09:11:24 +01:00
oca-travis
3ac853f052 [UPD] Update base_user_role_history.pot 2023-01-24 09:11:19 +01:00
Benoit Aimont
e42a8e29ca [12.0][MIG] base_user_role_history - migration from 9.0 to 12.0 2023-01-24 09:11:13 +01:00
Benoit Aimont
41c0290f94 [9.0][ADD] - base_user_role_history 2023-01-24 09:11:06 +01:00
oca-git-bot
4099d69799 [IMP] update dotfiles [ci skip] 2022-12-12 00:07:54 +01:00
OCA-git-bot
de3519aab3 Merge PR #198 into 16.0
Signed-off-by sebalix
2022-11-17 10:54:01 +00:00
Sébastien Alix
c1863f99db [FIX] Update from copier template 2022-11-17 11:47:56 +01:00
OCA-git-bot
a6cb61a8b2 [UPD] addons table in README.md 2022-10-20 07:17:07 +00:00
OCA-git-bot
3a63fc045d base_user_role 16.0.1.1.1 2022-10-20 07:17:02 +00:00
OCA-git-bot
dbdfde70dc [UPD] README.rst 2022-10-20 07:17:01 +00:00
OCA-git-bot
ba946e6221 Merge PR #194 into 16.0
Signed-off-by sebalix
2022-10-20 07:14:56 +00:00
Sébastien Alix
a48d1dca9b [DOC] base_user_role: set development status to 'Production/Stable' 2022-10-20 09:11:17 +02:00
Weblate
6923798184 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-backend-16.0/server-backend-16.0-base_user_role
Translate-URL: https://translation.odoo-community.org/projects/server-backend-16-0/server-backend-16-0-base_user_role/
2022-10-20 06:37:04 +00:00
OCA-git-bot
77dfdd4864 [UPD] addons table in README.md 2022-10-20 06:36:57 +00:00
OCA-git-bot
0c887ff86d base_user_role 16.0.1.1.0 2022-10-20 06:36:52 +00:00
oca-ci
967e0e0fe1 [UPD] Update base_user_role.pot 2022-10-20 06:34:52 +00:00
OCA-git-bot
5addccf543 Merge PR #191 into 16.0
Signed-off-by sebalix
2022-10-20 06:33:11 +00:00
Weblate
237ea0fa95 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-backend-16.0/server-backend-16.0-base_user_role
Translate-URL: https://translation.odoo-community.org/projects/server-backend-16-0/server-backend-16-0-base_user_role/
2022-10-18 15:09:16 +00:00
Kevin.roche
e0b4927d31 [IMP] base_user_role show rules and access 2022-10-18 14:49:25 +02:00
OCA-git-bot
b3d5148a5d [ADD] setup.py 2022-10-18 12:36:21 +00:00
OCA-git-bot
62d0d8a9de [UPD] README.rst 2022-10-18 12:36:21 +00:00
OCA-git-bot
06c4ffe272 [UPD] addons table in README.md 2022-10-18 12:36:20 +00:00
oca-ci
a540395d13 [UPD] Update base_user_role.pot 2022-10-18 12:34:22 +00:00
OCA-git-bot
fb2849bbb6 Merge PR #185 into 16.0
Signed-off-by sebalix
2022-10-18 12:32:19 +00:00
Arnaud Pineux
1ee2b6ef95 [MIG] base_user_role: Migration to 16.0 2022-10-04 10:09:56 +02:00
Arnaud Pineux
1cafb7b57d [IMP] base_user_role: black, isort, prettier 2022-10-04 10:09:13 +02:00
OCA-git-bot
5a0cd780d5 base_user_role 15.0.0.2.1 2022-10-04 10:09:13 +02:00
OCA Transbot
b00054041f Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-backend-15.0/server-backend-15.0-base_user_role
Translate-URL: https://translation.odoo-community.org/projects/server-backend-15-0/server-backend-15-0-base_user_role/
2022-10-04 10:09:13 +02:00
OCA-git-bot
3c285257cd base_user_role 15.0.0.2.0 2022-10-04 10:09:13 +02:00
oca-ci
d52eb76477 [UPD] Update base_user_role.pot 2022-10-04 10:09:13 +02:00