16 Commits

Author SHA1 Message Date
SilvioC2C
94f386ef05 FIX base_user_role: update tests 2022-09-01 13:45:13 +02:00
Jairo Llopis
cdf3c5695b [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
2021-07-29 14:20:57 +02:00
beau sebastien
8998006208 Merge branch '14.0' into 14.0-base_user_role_edit_broken 2021-01-27 15:52:50 +01:00
KevinKhao
3354dac107 [FIX] base_user_role: remove multicompany functionality 2021-01-25 23:32:31 +01:00
Sébastien BEAU
7eb3e12a14 [IMP] Fix edition of role 2020-12-20 14:25:57 +01:00
Jesús Alan Ramos Rodríguez
1bd7e1341a [MIG] base_user_role: Migration to 14.0 2020-12-16 08:12:30 -06:00
sebalix
0e1b4653f7 [IMP] base_user_role: black, isort 2020-12-16 08:12:29 -06:00
Pierrick Brun
0e757884ce [IMP] make base_user_role_line company dependent 2020-12-16 08:12:29 -06:00
elicoidal
31395f31ee Switch AGPL to LGPL license 2020-12-16 08:12:29 -06:00
Duc Dao
3cbb632748 [MIG] base_user_role: Migration to 12.0 2020-12-16 08:12:29 -06:00
Benjamin Willig
65f2806095 [IMP] Use default user to define default roles to create for a new user 2020-12-16 08:12:29 -06:00
Duc Dao
7b41c362d2 [MIG] Update test cases for testing (unlink role and role line) to new api 2020-12-16 08:12:29 -06:00
sebalix
3d408dc663 [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
2020-12-16 08:12:29 -06:00
Duc Dao
961f983cd3 [MIG] base_user_role: Migration to 11.0 2020-12-16 08:12:29 -06:00
Adrien Peiffer (ACSONE)
cbeffb50bc [MIG] base_user_role: Port to 10.0 2020-12-16 08:12:29 -06:00
Sébastien Alix
cbc209a4d6 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
2020-12-16 08:12:29 -06:00