Commit Graph

176 Commits

Author SHA1 Message Date
OCA-git-bot
b65747bf6a [ADD] icon.png 2019-04-03 03:21:00 +00:00
Pedro M. Baeza
ff818f6ab3 Merge pull request #34 from Tecnativa/11.0-base_external_dbsource-reuse_present_postgres_settings_in_tests
[FIX] base_external_dbsource: Reuse Odoo DB settings for tests
2019-03-29 10:17:19 +01:00
Jairo Llopis
8d00f18f05 [FIX] base_external_dbsource: Reuse Odoo DB settings for tests
Before, postgres configuration was hardcoded. This worked OK for OCA's CI infrastructure, but failed in any other out there that had different defaults.

There's no need to hardcode it; Odoo already must have Postgres connection settings, so let's use those instead. This will make tests testable across different CI infrastructures.
2019-03-28 12:54:57 +00:00
oca-travis
951587e030 [UPD] Update base_external_dbsource_mssql.pot 2019-03-27 11:46:37 +00:00
oca-travis
7e25e9d2bc [UPD] Update base_external_dbsource.pot 2019-03-27 11:46:37 +00:00
OCA-git-bot
07d8ea35c9 [ADD] setup.py 2019-03-27 11:41:44 +00:00
OCA-git-bot
67fae14ec7 [UPD] README.rst 2019-03-27 11:41:43 +00:00
Pedro M. Baeza
b4aa0b7f0a Merge pull request #6 from Tecnativa/11.0-mig-base_external_dbsource_mssql
11.0[MIG] base_external_dbsource_mssql
2019-03-27 12:41:37 +01:00
OCA Transbot
29243a9ff8 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-backend-11.0/server-backend-11.0-base_external_dbsource
Translate-URL: https://translation.odoo-community.org/projects/server-backend-11-0/server-backend-11-0-base_external_dbsource/
2019-03-17 13:31:40 +00:00
OCA Transbot
ab9a016ce5 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

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/
2019-03-07 18:25:19 +00:00
oca-travis
cb47c2e285 [UPD] Update base_user_role.pot 2019-03-07 18:25:11 +00:00
oca-travis
afd1efb268 [UPD] Update base_external_dbsource.pot 2019-03-07 18:25:09 +00:00
Sergio Teruel Albert
ec982b8b20 [11.0][MIG] base_external_dbsource_mssql: Migration to v11.0 2019-03-07 16:42:40 +01:00
Dave Lasley
6195848101 [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

[UPD] Update base_external_dbsource_mssql.pot
2019-03-07 16:42:40 +01:00
Pedro M. Baeza
9b46319511 Merge pull request #13 from Tecnativa/11.0-PR-base_external_dbsource-company
[11.0][IMPO] base_external_dbsource: Add company field to backend
2019-03-07 16:36:40 +01:00
sergio.teruel
b7f439e04a [11.0][IMPO] base_external_dbsource: Add company field to backend 2019-03-07 14:04:06 +01:00
Pedro M. Baeza
4ee3ee65c4 [FIX] base_suspend_security: Adapt to upstream
On 9af8b31d921dcccb7bcf230271fd3ef4R4329, a new keyword argument was added
for `_browse`, so any overriding needs to add that argument, as it's the case
for this module.
2019-02-13 15:42:13 +01:00
Jordi Ballester Alomar
2436c886e9 Merge pull request #25 from Eficent/11.0-base_user_role-perf
[base_user_role] improve performance by only adding/removing from a user the groups that have changed with respect to the role.
2019-01-02 13:14:00 +01:00
Jordi Ballester Alomar
8ddb163f55 [base_user_role] improve performance by only adding/removing from a user
the groups that have changed with respecto the role.
2019-01-02 11:59:21 +01:00
Jordi Ballester Alomar
425aa81b02 Merge pull request #18 from Eficent/11.0-fix-base_external_dbsource_sqlite
[11.0][FIX] base_external_dbsource_sqlite crashing when sqlparams equal None
2018-11-30 17:59:20 +01:00
OCA Transbot
c3ea855b71 Update translation files
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
2018-11-25 17:23:44 +00:00
Adrià Gil Sorribes
6efcc23630 Extend test coverage 2018-11-15 11:22:41 +01:00
Adrià Gil Sorribes
4832c3583e [FIX] base_external_dbsource_sqlite crashing when sqlparams equal None 2018-11-13 15:26:17 +01: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
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