Sébastien Alix
098b12ba3d
fixup! [FIX] base_user_role: Improve tests resiliency
2025-01-28 15:55:10 +01:00
Jairo Llopis
7a111ecefe
[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 15:55:10 +01:00
Víctor Martínez
5cdaa567c7
[FIX] base_user_role: Improve test validation sorting values
...
Related to https://github.com/OCA/server-backend/pull/304
2024-09-05 18:08:25 +02:00
ArnauCForgeFlow
3b7bbf2856
[15.0][IMP] base_user_role: action to group groups into a role
2024-07-31 09:35:05 +02:00
Jesus Ramoneda
b91017ae66
[IMP] base_user_role: Adding alert in user when role is used
2024-03-09 14:17:26 +00:00
Guillaume Pothier
e50159af4e
Use kwargs in with_context, as per pre-commit recommendation
2023-06-21 17:21:41 -04:00
Guillaume Pothier
35711f27da
Add test for the create role from user wizard
2023-06-21 17:10:43 -04:00
Kiril Vangelovski
84029e18de
[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.
2022-10-04 10:09:13 +02:00
SilvioC2C
15334904b2
FIX base_user_role: update tests
2022-10-04 10:09:13 +02:00
KevinKhao
b2848fc636
[FIX] base_user_role: remove multicompany functionality
2022-10-04 10:09:13 +02:00
Sébastien BEAU
638fab8a3d
[IMP] Fix edition of role
2022-10-04 10:09:13 +02:00
Jesús Alan Ramos Rodríguez
4e4c257a18
[MIG] base_user_role: Migration to 14.0
2022-10-04 10:09:13 +02:00
sebalix
f6ded0c73a
[IMP] base_user_role: black, isort
2022-10-04 10:09:13 +02:00
Pierrick Brun
dcdc2b3c5f
[IMP] make base_user_role_line company dependent
2022-10-04 10:09:13 +02:00
elicoidal
fc5948b30a
Switch AGPL to LGPL license
2022-10-04 10:09:13 +02:00
Duc Dao
d844232ef0
[MIG] base_user_role: Migration to 12.0
2022-10-04 10:09:13 +02:00
Benjamin Willig
27ad268134
[IMP] Use default user to define default roles to create for a new user
2022-10-04 10:09:13 +02:00
Duc Dao
50addf9564
[MIG] Update test cases for testing (unlink role and role line) to new api
2022-10-04 10:09:13 +02:00
sebalix
d15ddff37d
[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
2022-10-04 10:09:13 +02:00
Duc Dao
9ba86a866a
[MIG] base_user_role: Migration to 11.0
2022-10-04 10:09:13 +02:00
Adrien Peiffer (ACSONE)
5b1fa994c4
[MIG] base_user_role: Port to 10.0
2022-10-04 10:09:13 +02:00
Sébastien Alix
109b814cd3
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
2022-10-04 10:09:13 +02:00