Commit Graph

33 Commits

Author SHA1 Message Date
Weblate
3890046f35 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_import_match
Translate-URL: https://translation.odoo-community.org/projects/server-backend-16-0/server-backend-16-0-base_import_match/
2023-10-10 00:22:35 +00:00
Francesco Foresti
17b2f0887d Translated using Weblate (Italian)
Currently translated at 51.8% (14 of 27 strings)

Translation: server-backend-16.0/server-backend-16.0-base_import_match
Translate-URL: https://translation.odoo-community.org/projects/server-backend-16-0/server-backend-16-0-base_import_match/it/
2023-09-07 17:36:19 +00:00
OCA-git-bot
7484706782 [UPD] README.rst 2023-09-03 16:36:44 +00:00
Ivorra78
c5d93413ee Translated using Weblate (Spanish)
Currently translated at 100.0% (27 of 27 strings)

Translation: server-backend-16.0/server-backend-16.0-base_import_match
Translate-URL: https://translation.odoo-community.org/projects/server-backend-16-0/server-backend-16-0-base_import_match/es/
2023-09-02 18:15:06 +00:00
Francesco Foresti
4cc8c0f7b1 Translated using Weblate (Italian)
Currently translated at 51.8% (14 of 27 strings)

Translation: server-backend-16.0/server-backend-16.0-base_import_match
Translate-URL: https://translation.odoo-community.org/projects/server-backend-16-0/server-backend-16-0-base_import_match/it/
2023-07-25 12:09:54 +00:00
mymage
a8f8f030ab Translated using Weblate (Italian)
Currently translated at 51.8% (14 of 27 strings)

Translation: server-backend-16.0/server-backend-16.0-base_import_match
Translate-URL: https://translation.odoo-community.org/projects/server-backend-16-0/server-backend-16-0-base_import_match/it/
2023-06-21 11:08:53 +00:00
OCA-git-bot
536351b8d4 [UPD] README.rst 2023-06-17 18:55:50 +00:00
oca-ci
480707c510 [UPD] Update base_import_match.pot 2023-06-17 18:53:50 +00:00
anjeel.haria
6b04546328 [MIG] base_import_match: Migration to 16.0 2023-03-22 15:34:44 +01:00
OCA-git-bot
4c8fe4685c base_import_match 15.0.1.0.1 2023-03-22 15:22:51 +01:00
Katherine Zaoral
f3bd2931a6 [FIX] base_import_match: "Unable to use a closed cursor"
Cached methods should never return recordsets, which are tied to
specific context, env, cursor, uid. Instead, they should return IDs
which, later, can be browsed in the current context.

With this change _usable_rules() cached method is now returing ids instead
of a recordset, and also the _match_find method is properly browsing the
results ids of the cached method.
2023-03-22 15:22:51 +01:00
OCA-git-bot
fc0bc24626 [UPD] README.rst 2023-03-22 15:22:51 +01:00
oca-ci
307e4a3d59 [UPD] Update base_import_match.pot 2023-03-22 15:22:51 +01:00
Augusto Weiss
8efe66fe1a [MIG] base_import_match: Migration to 15.0 2023-03-22 15:22:51 +01:00
oca-git-bot
883110ad91 [IMP] update dotfiles [ci skip] 2023-03-22 15:22:51 +01:00
Mi Di
e9641c3d1c Translated using Weblate (Vietnamese)
Currently translated at 100.0% (27 of 27 strings)

Translation: server-backend-14.0/server-backend-14.0-base_import_match
Translate-URL: https://translation.odoo-community.org/projects/server-backend-14-0/server-backend-14-0-base_import_match/vi_VN/
2023-03-22 15:22:51 +01:00
OCA-git-bot
b0b18a93ee [UPD] README.rst 2023-03-22 15:22:51 +01:00
oca-travis
9646e89c4e [UPD] Update base_import_match.pot 2023-03-22 15:22:51 +01:00
Jesus Ramoneda
d97c976985 [MIG] base_import_match: Migration to 14.0 2023-03-22 15:22:51 +01:00
Jesus Ramoneda
9ed2c852df [IMP] base_import_match: black, isort, prettier 2023-03-22 15:22:51 +01:00
Radovan Skolnik
80a27085f7 [MIG] base_import_match: Migration to 13.0
[UPD] Update base_import_match.pot
2023-03-22 15:22:51 +01:00
Radovan Skolnik
2bed15f9f9 [IMP] base_import_match: black, isort, prettier 2023-03-22 15:22:51 +01:00
Rodrigo Macedo
2a1678b9c9 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (27 of 27 strings)

Translation: server-backend-12.0/server-backend-12.0-base_import_match
Translate-URL: https://translation.odoo-community.org/projects/server-backend-12-0/server-backend-12-0-base_import_match/pt_BR/
2023-03-22 15:22:51 +01:00
OCA Transbot
cde8723f0b Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-backend-12.0/server-backend-12.0-base_import_match
Translate-URL: https://translation.odoo-community.org/projects/server-backend-12-0/server-backend-12-0-base_import_match/

[UPD] README.rst
2023-03-22 15:22:51 +01:00
ernesto
fe71d7bdc6 [MIG] base_import_match: Migration to 12.0
[UPD] README.rst

[UPD] Update base_import_match.pot
2023-03-22 15:22:51 +01:00
OCA Transbot
2c446e0c98 OCA Transbot updated translations from Transifex
[UPD] Update base_import_match.pot
2023-03-22 15:22:51 +01:00
Jairo Llopis
3a970e7477 [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.
2023-03-22 15:22:51 +01:00
OCA Transbot
4c3cc63232 OCA Transbot updated translations from Transifex 2023-03-22 15:22:51 +01:00
cubells
406186c0f9 base_import_match module 2023-03-22 15:22:51 +01:00
Jairo Llopis
a425b8cac5 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.
2023-03-22 15:22:51 +01:00
Moisés López
b2b8707001 base_import_match: Small rst fixes in readme file 2023-03-22 15:22:51 +01:00
Jairo Llopis
ff92667288 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.
2023-03-22 15:22:51 +01:00
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