Jairo Llopis
3ed821be69
[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
2025-01-28 14:05:08 +01:00
Jesus Ramoneda
b7578b9034
[IMP] base_user_role: Adding alert in user when role is used
2024-06-21 20:28:00 +00:00
ArnauCForgeFlow
caab8fa2fa
[15.0][IMP] base_user_role: action to group groups into a role
2024-01-30 13:07:10 +01:00
Raf Ven
8e44a19b47
[MIG] base_user_role: Migration to 17.0
2023-12-13 15:00:48 +01:00
Guillaume Pothier
c31ccb3b61
Use kwargs in with_context, as per pre-commit recommendation
2023-12-13 14:47:22 +01:00
Guillaume Pothier
bc514df073
Add test for the create role from user wizard
2023-12-13 14:47:22 +01:00
Kiril Vangelovski
484f4161ea
[FIX] base_user_role: tests - include trans_implied_ids
...
The unlink tests miss to add `trans_implied_ids` which is accounted
for when reseting the groups.
2023-12-13 14:47:22 +01:00
SilvioC2C
775b2da299
FIX base_user_role: update tests
2023-12-13 14:47:22 +01:00
KevinKhao
6e2457d547
[FIX] base_user_role: remove multicompany functionality
2023-12-13 14:47:22 +01:00
Sébastien BEAU
e08d2c9aad
[IMP] Fix edition of role
2023-12-13 14:47:22 +01:00
Jesús Alan Ramos Rodríguez
0bec68b672
[MIG] base_user_role: Migration to 14.0
2023-12-13 14:47:22 +01:00
sebalix
a59018f618
[IMP] base_user_role: black, isort
2023-12-13 14:47:22 +01:00
Pierrick Brun
aa1adbd9e3
[IMP] make base_user_role_line company dependent
2023-12-13 14:47:22 +01:00
elicoidal
2a1fbb4d43
Switch AGPL to LGPL license
2023-12-13 14:47:22 +01:00
Duc Dao
1928966e3c
[MIG] base_user_role: Migration to 12.0
2023-12-13 14:47:22 +01:00
Benjamin Willig
1450a271e6
[IMP] Use default user to define default roles to create for a new user
2023-12-13 14:47:22 +01:00
Duc Dao
a9b4d7c7a7
[MIG] Update test cases for testing (unlink role and role line) to new api
2023-12-13 14:47:22 +01:00
sebalix
59be83c846
[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
2023-12-13 14:47:22 +01:00
Duc Dao
f5eabd5620
[MIG] base_user_role: Migration to 11.0
2023-12-13 14:47:22 +01:00
Adrien Peiffer (ACSONE)
300dd73efa
[MIG] base_user_role: Port to 10.0
2023-12-13 14:47:22 +01:00
Sébastien Alix
fc5ffce1a7
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
2023-12-13 14:47:22 +01:00