Commit Graph

72 Commits

Author SHA1 Message Date
Jairo Llopis
0757f3c2bc 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.
2021-02-25 16:19:31 +01:00
OCA-git-bot
671e17d39a [UPD] addons table in README.md 2021-02-12 12:13:21 +00:00
OCA-git-bot
9508bd6f6c base_user_role 14.0.2.1.1 2021-02-12 12:13:11 +00:00
OCA-git-bot
5d7a31a73c Merge PR #105 into 14.0
Signed-off-by dreispt
2021-02-12 11:52:08 +00:00
OCA Transbot
7f9de3e888 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-backend-14.0/server-backend-14.0-base_user_role
Translate-URL: https://translation.odoo-community.org/projects/server-backend-14-0/server-backend-14-0-base_user_role/
2021-01-28 12:43:17 +00:00
OCA-git-bot
87b06f60c3 [UPD] addons table in README.md 2021-01-28 12:43:08 +00:00
OCA-git-bot
43727cdfdb base_user_role 14.0.2.1.0 2021-01-28 12:42:57 +00:00
OCA-git-bot
2d7281188d [UPD] README.rst 2021-01-28 12:42:56 +00:00
oca-travis
d35871e0e7 [UPD] Update base_user_role.pot 2021-01-28 12:28:37 +00:00
OCA-git-bot
12773c01b8 Merge PR #109 into 14.0
Signed-off-by sebastienbeau
2021-01-28 12:10:44 +00:00
beau sebastien
8998006208 Merge branch '14.0' into 14.0-base_user_role_edit_broken 2021-01-27 15:52:50 +01:00
Kevin Khao
a1cf3de9b0 Merge branch '14.0' into 14.0-imp-base_user_role_ux 2021-01-27 13:50:55 +01:00
KevinKhao
3127164937 [IMP] base_user_role: UX improvements 2021-01-27 13:49:08 +01:00
OCA Transbot
efadf0f233 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-backend-14.0/server-backend-14.0-base_user_role
Translate-URL: https://translation.odoo-community.org/projects/server-backend-14-0/server-backend-14-0-base_user_role/
2021-01-27 11:27:37 +00:00
OCA-git-bot
7dcc8494c2 [UPD] addons table in README.md 2021-01-27 11:27:29 +00:00
OCA-git-bot
1173ab5184 base_user_role 14.0.2.0.0 2021-01-27 11:27:20 +00:00
oca-travis
e4693de449 [UPD] Update base_user_role.pot 2021-01-27 11:24:33 +00:00
OCA-git-bot
ecd1ed7b9a Merge PR #108 into 14.0
Signed-off-by sebastienbeau
2021-01-27 11:16:18 +00:00
KevinKhao
3354dac107 [FIX] base_user_role: remove multicompany functionality 2021-01-25 23:32:31 +01:00
OCA Transbot
a4869c585b Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-backend-14.0/server-backend-14.0-base_user_role
Translate-URL: https://translation.odoo-community.org/projects/server-backend-14-0/server-backend-14-0-base_user_role/
2020-12-30 20:16:41 +00:00
OCA-git-bot
8b040fa98d [UPD] addons table in README.md 2020-12-30 20:16:18 +00:00
OCA-git-bot
aca4efd997 base_user_role 14.0.1.1.0 2020-12-30 20:16:09 +00:00
OCA-git-bot
1a70671cca [UPD] README.rst 2020-12-30 20:16:09 +00:00
oca-travis
3aae6aafbb [UPD] Update base_user_role.pot 2020-12-30 20:13:28 +00:00
OCA-git-bot
c5b1726394 Merge PR #107 into 14.0
Signed-off-by pedrobaeza
2020-12-30 20:09:11 +00:00
Harald Panten
e394944345 [IMP] base_user_role: Adding a new tab for user comments in roles form. 2020-12-21 16:51:00 +01:00
Sébastien BEAU
7eb3e12a14 [IMP] Fix edition of role 2020-12-20 14:25:57 +01:00
OCA-git-bot
c335fa260c [ADD] setup.py 2020-12-16 17:28:10 +00:00
OCA-git-bot
e6d55fc6b0 [UPD] addons table in README.md 2020-12-16 17:28:09 +00:00
oca-travis
fcde05b183 [UPD] Update base_user_role.pot 2020-12-16 17:12:13 +00:00
OCA-git-bot
aebadad1c9 Merge PR #95 into 14.0
Signed-off-by StefanRijnhart
2020-12-16 16:45:57 +00:00
Jesús Alan Ramos Rodríguez
1bd7e1341a [MIG] base_user_role: Migration to 14.0 2020-12-16 08:12:30 -06:00
Jesús Alan Ramos Rodríguez
a45a2e8ce2 [IMP] base_user_role: black, isort, prettier 2020-12-16 08:12:30 -06:00
Houzéfa Abbasbhay
9cb1444ea7 Translated using Weblate (French)
Currently translated at 82.5% (33 of 40 strings)

Translation: server-backend-13.0/server-backend-13.0-base_user_role
Translate-URL: https://translation.odoo-community.org/projects/server-backend-13-0/server-backend-13-0-base_user_role/fr/
2020-12-16 08:12:30 -06:00
OCA-git-bot
fcbbe8da30 pre-commit update 2020-12-16 08:12:30 -06:00
Jesús Alan Ramos Rodríguez
bf5de3cd4c Translated using Weblate (Spanish (Mexico))
Currently translated at 100.0% (40 of 40 strings)

Translation: server-backend-13.0/server-backend-13.0-base_user_role
Translate-URL: https://translation.odoo-community.org/projects/server-backend-13-0/server-backend-13-0-base_user_role/es_MX/
2020-12-16 08:12:30 -06:00
OCA Transbot
b87189ea5b Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-backend-13.0/server-backend-13.0-base_user_role
Translate-URL: https://translation.odoo-community.org/projects/server-backend-13-0/server-backend-13-0-base_user_role/
2020-12-16 08:12:30 -06:00
OCA-git-bot
ceb80682a6 [UPD] README.rst 2020-12-16 08:12:29 -06:00
oca-travis
9655869baf [UPD] Update base_user_role.pot 2020-12-16 08:12:29 -06:00
sebalix
0e1b4653f7 [IMP] base_user_role: black, isort 2020-12-16 08:12:29 -06:00
sebalix
6337a5968e [MIG] base_user_role: Migration to 13.0 2020-12-16 08:12:29 -06:00
Pierrick Brun
e896dedd10 FIX check_company 2020-12-16 08:12:29 -06:00
Pierrick Brun
0e757884ce [IMP] make base_user_role_line company dependent 2020-12-16 08:12:29 -06:00
Pierrick Brun
9b5fa560e3 Make user_id and role_id required in base_user_role_line 2020-12-16 08:12:29 -06:00
Pierrick Brun
afc6eaf947 Revert "[FIX] Crash in base_user_role when role_id is not set on res.users.role.line"
This reverts commit b537941d5a2d1fcb3fbacc602124c1b3f6e1d495.
2020-12-16 08:12:29 -06:00
elicoidal
31395f31ee Switch AGPL to LGPL license 2020-12-16 08:12:29 -06:00
_tux
b37fdd8ffb [10.0][UPD] base_user_role: Disabled Administrator user selection in notebook users line (#1170) 2020-12-16 08:12:29 -06:00
OCA-git-bot
a5e0b0fe88 [UPD] README.rst 2020-12-16 08:12:29 -06:00
Jordi Ballester Alomar
bad799269a [base_user_role] improve performance by only adding/removing from a user
the groups that have changed with respecto the role.
2020-12-16 08:12:29 -06:00
ernesto
07eeadf4aa [MIG] base_import_match: Migration to 12.0 2020-12-16 08:12:29 -06:00