Commit Graph

9 Commits

Author SHA1 Message Date
Kevin Khao
d64b4123a9 [IMP] base_user_role: black 2020-03-04 10:49:05 +01: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
Duc Dao
a34fb2eae4 [MIG] base_user_role: Migration to 12.0 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
Adrien Peiffer (ACSONE)
439d324bde [MIG] base_user_role: Port to 10.0 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