Commit Graph

101 Commits

Author SHA1 Message Date
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
Hans Henrik Gabelgaard
e53d461500 Translated using Weblate (Danish)
Currently translated at 100,0% (37 of 37 strings)

Translation: server-backend-11.0/server-backend-11.0-base_user_role
Translate-URL: https://translation.odoo-community.org/projects/server-backend-11-0/server-backend-11-0-base_user_role/da/
2018-08-30 08:00:10 +00:00
oca-travis
8d2552cb8d [UPD] Update base_user_role.pot 2018-08-30 07:03:06 +00:00
oca-travis
dea37f4f9d [UPD] Update base_suspend_security.pot 2018-08-30 07:03:05 +00:00
oca-travis
bd4e3d6bf4 [UPD] Update base_external_system.pot 2018-08-30 07:03:04 +00:00
oca-travis
1fb9fb03c6 [UPD] Update base_external_dbsource_sqlite.pot 2018-08-30 07:03:04 +00:00
oca-travis
5948a83c26 [UPD] Update base_external_dbsource_mysql.pot 2018-08-30 07:03:03 +00:00
oca-travis
b9c7254518 [UPD] Update base_external_dbsource.pot 2018-08-30 07:03:03 +00:00
Pedro M. Baeza
4bb594bffa .travis.yml: Add MAKEPOT stage 2018-08-30 08:56:22 +02:00
Pedro M. Baeza
55243946cb Merge pull request #10 from crnd-inc/11.0-fix-suspend-security
[11.0][FIX] suspend security incorrect uid in env
2018-08-07 07:13:35 +02:00
Dmytro Katyukha
971f2e120f [FIX] suspend security incorrect uid in env 2018-08-06 21:47:44 +03:00
OCA Git Bot
dc43d8b483 [ADD] setup.py 2018-07-27 05:29:06 +02:00
OCA Git Bot
72258f81cc [UPD] README.rst 2018-07-27 05:29:06 +02:00
Maxime Chambreuil
2519c68d88 Update requirements.txt 2018-07-26 11:05:28 -05:00
Maxime Chambreuil
41eab6ea38 Update requirements.txt 2018-07-26 15:14:32 +00:00
Maxime Chambreuil
d6f30de825 Merge pull request #11 from Tecnativa/11.0-mig-base_external_dbsource_mysql
11.0 mig base external dbsource mysql
2018-07-26 10:00:14 -05:00
Sergio Teruel Albert
df40061bf7 Merge pull request #3 from ursais/11.0-mig-base_external_dbsource_mysql
Rebase on OCA/11.0
2018-07-25 10:29:43 +02:00
Maxime Chambreuil
ea652fd39c Update .travis.yml 2018-07-24 18:24:53 -05:00
Maxime Chambreuil
8ec7ebb6d4 [FIX] Python lib name 2018-07-24 18:24:53 -05:00
Sergio Teruel Albert
a275f700a8 [11.0][MIG] base_external_dbsource_mysql: Migration to v11.0 2018-07-24 18:24:53 -05:00
oca-travis
7fb873985d [UPD] Update base_external_dbsource_mysql.pot 2018-07-24 18:24:53 -05:00
Dave Lasley
d0ea3aaeac [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
2018-07-24 18:24:53 -05:00
Sergio Teruel Albert
54db0fe97a Merge pull request #2 from ursais/11.0-mig-base_external_dbsource_mysql
Update .travis.yml
2018-07-25 00:27:21 +02:00
Maxime Chambreuil
100e287f97 Update .travis.yml 2018-07-24 16:06:31 -05:00
Sergio Teruel Albert
a6aa4e5728 Merge pull request #1 from ursais/11.0-mig-base_external_dbsource_mysql
[FIX] Python lib name
2018-07-24 08:51:50 +02:00
Maxime Chambreuil
963872aee3 [FIX] Python lib name 2018-07-23 16:07:12 -05:00
OCA Git Bot
7078f5f25e [ADD] setup.py 2018-07-10 05:28:58 +02:00
OCA Git Bot
ae85c4e564 [UPD] README.rst 2018-07-10 05:28:58 +02:00
Pedro M. Baeza
0562dfc57c Merge pull request #8 from Tecnativa/11.0-mig-base_external_dbsource_sqlite
11.0 [MIG] base_external_dbsource_sqlite
2018-07-09 14:59:32 +02:00
Sergio Teruel Albert
4464e718f7 [11.0][MIG] base_external_dbsource_sqlite: Migration to v11.0 2018-07-09 14:42:34 +02:00
oca-travis
8b6b8fa178 [UPD] Update base_external_dbsource_sqlite.pot 2018-07-09 14:41:24 +02:00
Dave Lasley
3402fedc00 [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
2018-07-09 14:41:24 +02:00
OCA Git Bot
a656e75d38 [ADD] setup.py 2018-06-29 05:28:29 +02:00
OCA Git Bot
84837e9283 [UPD] README.rst 2018-06-29 05:28:29 +02:00
Sergio Teruel Albert
ae0ee83dfe [11.0][MIG] base_external_dbsource_mysql: Migration to v11.0 2018-06-28 17:19:07 +02:00
oca-travis
eb075533e7 [UPD] Update base_external_dbsource_mysql.pot 2018-06-28 17:19:06 +02:00
Dave Lasley
0128b6429a [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
2018-06-28 17:19:06 +02:00
Pedro M. Baeza
17a3433ed0 Merge pull request #2 from LasLabs/release/11.0/base_external_system
[MIG] base_external_system: Upgrade to v11
2018-06-28 11:15:19 +02:00
Pedro M. Baeza
75bb4a9422 Merge pull request #9 from Tecnativa/11.0-mig-base_external_dbsource
11.0 [mig] base_external_dbsource
2018-06-28 11:05:46 +02:00
Sergio Teruel Albert
5a917a5141 [11.0][MIG] base_external_dbsource: Migration to v11.0 2018-06-28 10:00:11 +02:00
oca-travis
b73dcc500e [UPD] Update base_external_dbsource.pot 2018-06-27 13:44:30 +02:00
Dave Lasley
4f83d856bb [FIX] base_external_dbsource: Fix PQ connection
* Use `conn_string_full` in pg connection to fix #888
2018-06-27 13:44:30 +02:00
OCA Transbot
6ff82c7796 OCA Transbot updated translations from Transifex 2018-06-27 13:44:30 +02:00
Dave Lasley
ba8e27362e [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
2018-06-27 13:44:20 +02:00