Commit Graph

114 Commits

Author SHA1 Message Date
OCA Transbot
0c7ecfa93e OCA Transbot updated translations from Transifex 2020-07-15 15:31:51 +02:00
cubells
13dded071e base_import_match module 2020-07-15 15:31:51 +02:00
Jairo Llopis
2d092b454d 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.
2020-07-15 15:31:51 +02:00
Moisés López
62090284d9 base_import_match: Small rst fixes in readme file 2020-07-15 15:31:51 +02:00
Jairo Llopis
dc0c1a2b10 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.
2020-07-15 15:31:51 +02:00
Jairo Llopis
47128c59c9 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.
2020-07-15 15:31:51 +02:00
OCA-git-bot
da7b2dfe78 [ADD] setup.py 2020-06-17 23:42:54 +00:00
OCA-git-bot
163d88fcb5 [UPD] README.rst 2020-06-17 23:42:54 +00:00
oca-travis
d7ba3ca846 [UPD] Update base_user_role_history.pot 2020-06-17 21:46:15 +00:00
OCA-git-bot
250db8d9cd Merge PR #53 into 13.0
Signed-off-by dreispt
2020-06-17 21:23:23 +00:00
Benoit Aimont
a6f7a37bad [FIX] base_user_role_history - prettier xml plugin 2020-06-12 10:08:40 +02:00
Benoit Aimont
21f457618f [MIG] base_user_role_history: Migration to 13.0 2020-06-12 09:20:38 +02:00
Benoit Aimont
dc39a014fa [IMP] base_user_role_history: black, isort 2020-06-12 09:19:54 +02:00
OCA-git-bot
511523527a [ADD] icon.png 2020-06-12 09:19:54 +02:00
OCA-git-bot
178e3428cb [UPD] README.rst 2020-06-12 09:19:54 +02:00
oca-travis
e5f19414da [UPD] Update base_user_role_history.pot 2020-06-12 09:19:54 +02:00
Benoit Aimont
86e3aa3fa6 [12.0][MIG] base_user_role_history - migration from 9.0 to 12.0 2020-06-12 09:19:54 +02:00
Benoit Aimont
5d1182339d [9.0][ADD] - base_user_role_history 2020-06-12 09:19:54 +02:00
OCA-git-bot
37a46cf3a7 [UPD] pin flake8 version [ci skip] 2020-05-13 14:09:29 +02:00
OCA-git-bot
67b5777f70 [ADD] setup.py 2020-04-18 12:16:02 +00:00
OCA-git-bot
bea0e7079f [UPD] README.rst 2020-04-18 12:16:01 +00:00
oca-travis
ff3cb8fc34 [UPD] Update base_external_dbsource_sqlite.pot 2020-04-18 12:10:53 +00:00
OCA-git-bot
4bba23a01e Merge PR #59 into 13.0
Signed-off-by pedrobaeza
2020-04-18 12:03:08 +00:00
Sergio Teruel
2b237b5774 [MIG] base_external_dbsource_sqlite: Migration to v13.0 2020-04-15 20:29:52 +02:00
oca-travis
0096578280 [UPD] Update base_external_dbsource_sqlite.pot 2020-04-15 20:29:02 +02:00
Sergio Teruel
f98adb2774 [MIG] base_external_dbsource_sqlite: Migration to v12.0 2020-04-15 20:29:02 +02:00
OCA-git-bot
397b4cc2d9 [UPD] README.rst 2020-04-15 20:29:02 +02:00
OCA-git-bot
5632a23caa [ADD] icon.png 2020-04-15 20:29:02 +02:00
Adrià Gil Sorribes
8f0120e94a Extend test coverage 2020-04-15 20:29:02 +02:00
Adrià Gil Sorribes
14c3ab3766 [FIX] base_external_dbsource_sqlite crashing when sqlparams equal None 2020-04-15 20:29:02 +02:00
oca-travis
834e0cdfa1 [UPD] Update base_external_dbsource_sqlite.pot 2020-04-15 20:29:02 +02:00
OCA Git Bot
4ce9690836 [UPD] README.rst 2020-04-15 20:29:02 +02:00
Sergio Teruel Albert
1cbdf087c3 [11.0][MIG] base_external_dbsource_sqlite: Migration to v11.0 2020-04-15 20:29:02 +02:00
oca-travis
1345900308 [UPD] Update base_external_dbsource_sqlite.pot 2020-04-15 20:29:02 +02:00
Dave Lasley
4acb3c4b9e [IMP] base_external_dbsource: Refactor & Split by source
* Heavily refactor code for reusability
* Split all sources into independent modules
* Add more test coverage
* Add CRUD methods
* Add iterator execute return to roadmap
2020-04-15 20:29:02 +02:00
OCA-git-bot
822c13bf7f pre-commit update 2020-03-14 12:23:52 +01:00
Jesús Alan Ramos Rodríguez
2656c71097 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-02-15 15:13:44 +00:00
OCA Transbot
b405f2bd3f 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-01-31 17:52:18 +00:00
OCA Bot
48ab0227a0 [UPD] .travis.yml: Use verbose colored pre-commit [skip ci] 2020-01-31 18:52:10 +01:00
OCA Transbot
94a56d847a 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_external_dbsource
Translate-URL: https://translation.odoo-community.org/projects/server-backend-13-0/server-backend-13-0-base_external_dbsource/
2020-01-30 08:54:32 +00:00
OCA-git-bot
c7dc687353 [ADD] setup.py 2020-01-30 08:54:21 +00:00
OCA-git-bot
4b26a0541c [UPD] README.rst 2020-01-30 08:54:20 +00:00
oca-travis
e01593b675 [UPD] Update base_user_role.pot 2020-01-30 08:50:06 +00:00
OCA-git-bot
d6bd271cd9 Merge PR #46 into 13.0
Signed-off-by pedrobaeza
2020-01-30 08:44:09 +00:00
sebalix
7615a99a18 [IMP] base_user_role: black, isort 2020-01-30 09:09:20 +01:00
sebalix
4f7df6ddf7 [MIG] base_user_role: Migration to 13.0 2020-01-29 10:57:23 +01:00
Pierrick Brun
9d77f5804e FIX check_company 2020-01-29 10:57:23 +01:00
Pierrick Brun
df80d597ed [IMP] make base_user_role_line company dependent 2020-01-29 10:57:23 +01:00
Pierrick Brun
9dde5333ed Make user_id and role_id required in base_user_role_line 2020-01-29 10:57:23 +01:00
Pierrick Brun
30bc37738c Revert "[FIX] Crash in base_user_role when role_id is not set on res.users.role.line"
This reverts commit b537941d5a2d1fcb3fbacc602124c1b3f6e1d495.
2020-01-29 10:57:23 +01:00