Commit Graph

97 Commits

Author SHA1 Message Date
Jairo Llopis
8d317ed990 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.
2019-02-11 15:19:24 -05:00
OCA-git-bot
cefee972da [UPD] README.rst 2019-02-11 19:47:15 +00:00
Pedro M. Baeza
04bfe11472 Merge pull request #23 from Eficent/12.0-fix-readme-base_user_role
[12.0][FIX] base_user_role: readme travis
2019-02-11 20:47:10 +01:00
hveficent
2f3402ed1b [12.0][FIX] readme 2018-12-11 14:45:46 +01:00
OCA-git-bot
4893159ceb [UPD] README.rst 2018-12-02 02:54:58 +00:00
Adrià Gil Sorribes
3217ada4d0 [12.0][MIG] Migrate module base_external_dbsource 2018-11-30 16:26:02 +01:00
oca-travis
fb6136ba6f [UPD] Update base_external_dbsource.pot 2018-11-30 16:26:02 +01:00
OCA Git Bot
83b7b1ca36 [UPD] README.rst 2018-11-30 16:26:02 +01:00
Sergio Teruel Albert
90d2fa6769 [11.0][MIG] base_external_dbsource: Migration to v11.0 2018-11-30 16:26:02 +01:00
oca-travis
f0394b5e77 [UPD] Update base_external_dbsource.pot 2018-11-30 16:26:02 +01:00
Dave Lasley
d9fe18e366 [FIX] base_external_dbsource: Fix PQ connection
* Use `conn_string_full` in pg connection to fix #888
2018-11-30 16:26:02 +01:00
OCA Transbot
75334936ea OCA Transbot updated translations from Transifex 2018-11-30 16:26:02 +01:00
Dave Lasley
98de793eb5 [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-11-30 16:26:02 +01:00
Daniel Reis
b15303723a Relicense to LGPL
With the agreement of authors and contributors.
Closes #635 (https://github.com/OCA/server-tools/issues/635)
2018-11-30 16:26:02 +01:00
Michell Stuttgart
2d65341ef0 [10.0] Add Firebird database support to base_external_dbsource (#623) 2018-11-30 16:26:02 +01:00
OCA Transbot
effab882a2 OCA Transbot updated translations from Transifex 2018-11-30 16:26:02 +01:00
Henry Zhou
7dafca356a [MIG][10.0] base_external_dbsource (#578) 2018-11-30 16:26:02 +01:00
OCA Transbot
53934d20b6 OCA Transbot updated translations from Transifex 2018-11-30 16:26:02 +01:00
Gervais Naoussi
c79fbb2f1e [MIG] base external dbsource
* Migration of base_external_dbsource to odoo 9.0

* Fixing test error

* Moving test from yaml to python

* Fixing pylint error in test class

* Placeholder added to connection string text zone

* improving test coverage
2018-11-30 16:26:02 +01:00
OCA Transbot
acd80e4804 OCA Transbot updated translations from Transifex 2018-11-30 16:26:02 +01:00
Sandy
90321784a1 Activate base_external_dbsource 2018-11-30 16:26:02 +01:00
lauris
1ddde32724 base_external_dbsource and import_odbc modules moved out of __unported__ and adopted for instalation on v8.0 : created new form views for both modules as old ones was for v6.1 2018-11-30 16:26:02 +01:00
Stéphane Bidoul
b96f1e4336 move all modules to __unported__ on master branch and set installable=False 2018-11-30 16:26:02 +01:00
Maxime Chambreuil
aea4f93178 [IMP] Update to v7 menu structure and dos2unix conversion
(../ext rev 366)
2018-11-30 16:26:02 +01:00
Daniel Reis
c3344a67f9 [CHG] simplified dbsource.execute api to a single method with two possible behaviors
(../ext rev 351.3.4)
2018-11-30 16:26:02 +01:00
webtec
3b21be008b CHG: adapted to base_external_dbsource; code refactored
(../ext rev 351.3.3)
2018-11-30 16:26:02 +01:00
OCA Transbot
8660cc9b0a Update translation files
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
2018-11-25 17:23:52 +00:00
oca-travis
947f6fedfd [UPD] Update base_user_role.pot 2018-11-19 17:38:58 +00:00
OCA-git-bot
0507fa82ee [ADD] setup.py 2018-11-19 17:18:54 +00:00
OCA-git-bot
3f8b51b5a5 [UPD] README.rst 2018-11-19 17:18:54 +00:00
Pedro M. Baeza
c0a3bfab9c Merge pull request #15 from novawish/12.0-mig-base_user_role
12.0 mig base user role
2018-11-19 18:18:50 +01:00
Duc Dao
a34fb2eae4 [MIG] base_user_role: Migration to 12.0 2018-11-19 18:00:21 +01:00
Hans Henrik Gabelgaard
4f87436611 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-11-19 18:00:21 +01:00
oca-travis
287070f733 [UPD] Update base_user_role.pot 2018-11-19 18:00:21 +01:00
Benjamin Willig
dcc76bd648 [IMP] Use default user to define default roles to create for a new user 2018-11-19 18:00:21 +01:00
Duc Dao
1f51952568 [MIG] Update test cases for testing (unlink role and role line) to new api 2018-11-19 18:00:21 +01:00
sebalix
48703df707 [FIX+IMP] base_user_role: Several things:
* FIX: Update users' groups when a role is deleted
* IMP: add some test cases to check user's groups when its last role line is removed
* FIX: ensure that the user's groups are updated when its last role line is removed
2018-11-19 18:00:21 +01:00
Duc Dao
e63b03047b [MIG] base_user_role: Migration to 11.0 2018-11-19 18:00:21 +01:00
Benjamin Willig
03609673e7 [10.0][FIX] User group not updating when removing a user from the role view 2018-11-19 17:59:33 +01:00
Alexis de Lattre
44a20fcafc [FIX] Crash in base_user_role when role_id is not set on res.users.role.line 2018-11-19 17:59:33 +01:00
Adrien Peiffer (ACSONE)
439d324bde [MIG] base_user_role: Port to 10.0 2018-11-19 17:59:33 +01:00
sebalix
195a958e30 base_user_role - Set a default category to associated groups 2018-11-19 17:59:33 +01:00
Stéphane Bidoul (ACSONE)
d7732a5b02 base_user_role: display roles as first tab in user form 2018-11-19 17:59:33 +01:00
Sébastien Alix
e0daffb241 8.0 - New module 'base_user_role' to manage user roles efficiently (#608)
* [ADD] New module 'base_user_role'

* [FIX] base_user_role - Review

* [FIX] base_user_role - Review s/is_active/is_enabled/

* [FIX] base_user_role - Review s/is_active/is_enabled/

* [IMP] base_user_role - Translations updated (template + FR)

* [FIX] base_user_role - Lint
2018-11-19 17:59:33 +01:00
OCA Git Bot
a1c3b72d27 [ADD] setup.py 2018-10-06 11:45:09 +02:00
OCA git bot
c6ac9633bf [MIG] .travis.yml: Upgrade to Postgres 9.6 2018-10-01 09:30:14 +02:00
OCA git bot
e131df3bd4 [MIG] Add metafiles
[skip ci]
2018-09-27 02:38:09 +02:00