17 Commits

Author SHA1 Message Date
OCA-git-bot
b90d99f528 [UPD] README.rst 2023-09-03 16:34:36 +00:00
mymage
f847b15fb2 Translated using Weblate (Italian)
Currently translated at 57.6% (15 of 26 strings)

Translation: server-backend-11.0/server-backend-11.0-base_import_match
Translate-URL: https://translation.odoo-community.org/projects/server-backend-11-0/server-backend-11-0-base_import_match/it/
2023-04-10 16:35:41 +00:00
Matjaz Mozetic
bbab41d3bd Translated using Weblate (Slovenian)
Currently translated at 92.3% (24 of 26 strings)

Translation: server-backend-11.0/server-backend-11.0-base_import_match
Translate-URL: https://translation.odoo-community.org/projects/server-backend-11-0/server-backend-11-0-base_import_match/sl/
2023-03-31 21:29:39 +00:00
mymage
74d3034250 Translated using Weblate (Italian)
Currently translated at 57.6% (15 of 26 strings)

Translation: server-backend-11.0/server-backend-11.0-base_import_match
Translate-URL: https://translation.odoo-community.org/projects/server-backend-11-0/server-backend-11-0-base_import_match/it/
2023-03-30 14:33:32 +00:00
Francesco Foresti
a3a9c01f92 Translated using Weblate (Italian)
Currently translated at 57.6% (15 of 26 strings)

Translation: server-backend-11.0/server-backend-11.0-base_import_match
Translate-URL: https://translation.odoo-community.org/projects/server-backend-11-0/server-backend-11-0-base_import_match/it/
2023-03-07 19:22:43 +00:00
OCA-git-bot
f72d0c15f7 [UPD] README.rst 2021-03-16 14:37:30 +00:00
oca-travis
7422613c0b [UPD] Update base_import_match.pot 2021-03-16 14:00:33 +00:00
Marçal Isern
deb62c24f5 [MIG] [11.0] base_import_match 2019-05-29 09:17:04 +02:00
oca-travis
815e44842e [UPD] Update base_import_match.pot 2018-11-10 19:49:39 +01:00
OCA Transbot
c7c4282513 OCA Transbot updated translations from Transifex 2018-11-10 19:49:39 +01:00
Jairo Llopis
ce0d4f6aff [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.
2018-11-10 19:04:50 +01:00
OCA Transbot
8c850b9869 OCA Transbot updated translations from Transifex 2018-11-10 19:04:50 +01:00
cubells
19c04fc39b base_import_match module 2018-11-10 19:04:50 +01:00
Jairo Llopis
4f5346bae4 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.
2018-11-10 19:04:50 +01:00
Moisés López
a751e7f05d base_import_match: Small rst fixes in readme file 2018-11-10 19:04:50 +01:00
Jairo Llopis
ac331434ef 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.
2018-11-10 19:04:50 +01:00
Jairo Llopis
5dd8c06855 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.
2018-11-10 19:04:50 +01:00