Commit Graph

79 Commits

Author SHA1 Message Date
OCA Transbot
3c0073b17f OCA Transbot updated translations from Transifex
[UPD] Update base_import_match.pot
2021-02-25 16:20:12 +01:00
Jairo Llopis
eaaaac1951 [10.0][MIG][base_import_match] Migration and update
Includes:

- Normal migration steps.
- Usage of brand new `_inherit = "base"` in Odoo 10, which implies
  removing a lot of monkey-patching code.
- Log a warning when multiple matches are found.
2021-02-25 16:19:31 +01:00
OCA Transbot
a43efe47ea OCA Transbot updated translations from Transifex 2021-02-25 16:19:31 +01:00
cubells
82a31630fb base_import_match module 2021-02-25 16:19:31 +01:00
Jairo Llopis
82bb1e33a3 Avoid UnicodeEncodeError. (#544)
* Fix wrong README format.

* [FIX][base_import_match] Avoid UnicodeEncodeError.

When the model or field you chose was translated and had some non-ascii
character, you got an error like this: `UnicodeEncodeError: 'ascii' codec can't
encode character u'\xed' in position 15: ordinal not in range(128)`.

Now, using unicode strings, that won't happen again.

* Do not require a hidden field.

* Further unicode protection, add ondelete clause.
2021-02-25 16:19:31 +01:00
Moisés López
57a82e554a base_import_match: Small rst fixes in readme file 2021-02-25 16:19:31 +01:00
Jairo Llopis
bdfc921a2e base_import_match: Add conditionals to fields when importing.
This patch allows to import res.partner records by VAT when is_company==True by default.
2021-02-25 16:19:31 +01:00
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