Commit Graph

225 Commits

Author SHA1 Message Date
OCA Git Bot
9c03edbb80 [UPD] README.rst 2020-01-08 10:42:10 +01:00
Sergio Teruel Albert
b6d36ee370 [11.0][MIG] base_external_dbsource_sqlite: Migration to v11.0 2020-01-08 10:42:10 +01:00
oca-travis
c1267e1be1 [UPD] Update base_external_dbsource_sqlite.pot 2020-01-08 10:42:10 +01:00
Dave Lasley
fff4e0f1bd [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
2020-01-08 10:42:10 +01:00
Jairo Llopis
0a5ccebdfc [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.
2020-01-07 13:23:31 +01:00
Monica Diaz Pena
d255acc749 Remove the __int__ implementation of BaseSuspendSecurityUid. 2020-01-06 17:17:46 -05:00
Monica Diaz Pena
77be6275b1 Allow reactivate the security in a suspend security call. 2020-01-06 17:17:46 -05:00
Monica Diaz Pena
8f24e9e776 Avoid Access Error when search with suspend security.
The Odoo `_search` function performs a  `sudo` on the first line of its
implementation, causing that the uid's wrapper (class BaseSuspendSecurityUid) is lost.

This is evidenced when a function with suspend security is called and in
its implementation needs the values ​​of a 'one2many' field (it does a
`search` in another model without reading access) an Access Error is raised.
2020-01-06 17:17:46 -05:00
Monica Diaz Pena
fd3c2624a1 Tests the search with suspend security. 2020-01-06 17:17:46 -05:00
OCA Transbot
c6a9bd39f7 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_user_role_history
Translate-URL: https://translation.odoo-community.org/projects/server-backend-12-0/server-backend-12-0-base_user_role_history/
2020-01-02 09:46:23 +00:00
OCA Transbot
b82a56797e 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_user_role
Translate-URL: https://translation.odoo-community.org/projects/server-backend-12-0/server-backend-12-0-base_user_role/
2020-01-02 09:46:22 +00:00
OCA-git-bot
148c2007fe base_user_role 12.0.1.1.0 2020-01-02 09:46:10 +00:00
oca-travis
3cff026ea2 [UPD] Update base_user_role.pot 2020-01-02 09:43:03 +00:00
OCA-git-bot
28fe442d6f Merge PR #52 into 12.0
Signed-off-by pedrobaeza
2020-01-02 09:40:02 +00:00
OCA-git-bot
b117a18cea [ADD] setup.py 2019-12-17 21:19:36 +00:00
OCA-git-bot
b751616cad [ADD] icon.png 2019-12-17 21:19:36 +00:00
OCA-git-bot
72d0628099 [UPD] README.rst 2019-12-17 21:19:35 +00:00
oca-travis
c7fabb8913 [UPD] Update base_user_role_history.pot 2019-12-17 21:14:06 +00:00
OCA-git-bot
bc54b1ba75 Merge PR #45 into 12.0
Signed-off-by moylop260
2019-12-17 21:08:52 +00:00
Harald Panten
bfcf31add1 [IMP] base_user_role: Adding a new tab for user comments in roles form. 2019-12-09 18:25:12 +01:00
OCA-git-bot
4b7d8b757f [ADD] .editorconfig [ci skip] 2019-11-19 21:13:55 +01:00
OCA-git-bot
55daeda460 base_user_role 12.0.1.0.1 2019-11-15 08:29:41 +00:00
OCA-git-bot
836479f590 Merge PR #51 into 12.0
Signed-off-by pedrobaeza
2019-11-15 08:24:21 +00:00
Jairo Llopis
e9ddce17c8 [FIX] base_user_role: Improve tests resiliency
These 2 tests were checking the exact set of groups a user should have.

If these tests are ran in a database where a module is previously installed which adds more groups to the base role, these exact group sets would be inexact, although the behavior that is being tested was actually properly working.

With this patch, basically I'm testing if the user contains the groups from the roles, not the exact role set expected. It should work in integration scenarios.

@Tecnativa TT20468
2019-11-13 11:48:09 +00:00
Benoit Aimont
d1822fcab8 [12.0][MIG] base_user_role_history - migration from 9.0 to 12.0 2019-10-01 16:59:01 +02:00
Benoit Aimont
f91a25e016 [9.0][ADD] - base_user_role_history 2019-10-01 16:41:13 +02:00
Rodrigo Macedo
979a3da6df Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (34 of 34 strings)

Translation: server-backend-12.0/server-backend-12.0-base_external_dbsource
Translate-URL: https://translation.odoo-community.org/projects/server-backend-12-0/server-backend-12-0-base_external_dbsource/pt_BR/
2019-09-03 01:23:50 +00:00
Rodrigo Macedo
e8bbdf6d0d Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (4 of 4 strings)

Translation: server-backend-12.0/server-backend-12.0-base_suspend_security
Translate-URL: https://translation.odoo-community.org/projects/server-backend-12-0/server-backend-12-0-base_suspend_security/pt_BR/
2019-09-03 01:23:47 +00:00
Rodrigo Macedo
2ac8cf966c 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/
2019-09-03 01:23:46 +00:00
OCA-git-bot
026406e76b [UPD] README.rst 2019-07-29 03:37:50 +00:00
OCA Transbot
1ee38c4cdc 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_external_dbsource
Translate-URL: https://translation.odoo-community.org/projects/server-backend-12-0/server-backend-12-0-base_external_dbsource/
2019-07-20 11:57:36 +00:00
oca-travis
83ff9bdc93 [UPD] Update base_external_dbsource.pot 2019-07-19 05:23:16 +00:00
OCA-git-bot
36166412aa [ADD] setup.py 2019-07-19 05:18:58 +00:00
OCA-git-bot
6a00ebf2aa [UPD] README.rst 2019-07-19 05:18:57 +00:00
Jordi Ballester Alomar
f5ddb5f9fd Merge pull request #20 from Eficent/12.0-mig-base_external_dbsource
[12.0][MIG] base_external_dbsource
2019-07-19 07:18:50 +02:00
OCA-git-bot
a2b39a1cd3 Merge PR #40 into 12.0
Signed-off-by pedrobaeza
2019-06-24 15:08:30 +00:00
OCA-git-bot
0a73bc84ec [ADD] setup.py 2019-06-24 15:08:30 +00:00
oca-travis
3c4a0cf6fd [UPD] Update base_external_system.pot 2019-06-24 14:19:42 +00:00
Alexandre Díaz
37d9334b15 [MIG] base_external_system: Migration to 12.0 2019-06-20 18:20:31 +02:00
oca-travis
bdde7d8d3b [UPD] Update base_external_system.pot 2019-06-20 17:59:44 +02:00
Dave Lasley
60d9aa6510 [MIG] base_external_system: Upgrade to v11
* Perform standard v11 migration
2019-06-20 17:59:44 +02:00
Dave Lasley
4a22c8764b [IMP] base_external_system: Add create bypass
* In cases of deep inheritance, it may be required to create an adapter directly. Add an override in the create via the env context to support this.
* Add default system type if creating from an interface
* Fix interface assignment during creation in adapter
2019-06-20 17:59:44 +02:00
Dave Lasley
50c6ee968a [ADD] base_external_system: Implement interface/adapter (#993)
* [ADD] base_external_system: Implement interface/adapter for external systems

* base_external_system: Fix OS model, add inherits, add validate

* base_external_system: Usability and private key pass

* base_external_system: Use contextmanager in adapter client

* base_external_system: Move contextmanager to interface

* base_external_system: Include contextmanager on adapter and system

* base_external_system: Unify client

* Use password widget for password field

* Add tests & security

* Fix lint

* Add plaintext note
2019-06-20 17:59:44 +02:00
OCA Transbot
e4fa90d853 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_suspend_security
Translate-URL: https://translation.odoo-community.org/projects/server-backend-12-0/server-backend-12-0-base_suspend_security/
2019-03-03 16:08:34 +00:00
OCA Transbot
d3658ba8f0 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/
2019-03-03 16:08:29 +00:00
Pedro M. Baeza
a9b573963f Merge pull request #33 from novawish/12.0-base_user_role-perf
[12.0 ][IMP] base_user_role: Improve performance by only adding/removing from a user the groups that have changed with respecto the role.
2019-02-26 09:34:42 +01:00
Jordi Ballester Alomar
300455f59d [base_user_role] improve performance by only adding/removing from a user
the groups that have changed with respecto the role.
2019-02-25 19:06:48 +07:00
oca-travis
45cc7096cf [UPD] Update base_suspend_security.pot 2019-02-21 14:29:43 +00:00
OCA-git-bot
50404c265e [ADD] setup.py 2019-02-21 14:23:39 +00:00
OCA-git-bot
bd8a513870 [UPD] README.rst 2019-02-21 14:23:39 +00:00