Commit Graph

12 Commits

Author SHA1 Message Date
OCA-git-bot
a724decf5f [UPD] README.rst 2021-03-16 11:05:33 +00:00
Andrius Laukavičius
115aba15df [FIX] base_user_role: default user multi-company
When creating user, default roles are using `base.default_user`, which
in multi-company case, can be from different company than user is being
created for. If thats the case, user creating another user, will get
access error, when trying to read default template user.

To work around that, we use sudo, to make sure, template user data can
be read regardless of a company.

Also improved the way base_user_role tests are run. Changed base test
class from TransactionCase to SavepointCase.

From how tests are ran perspective, both classes behave the same: each
test uses set up which is roll backed after.

But the difference is that SavepointCase case is much faster, because
it calls setUpClass once and saves this case for all tests (reusing
saved state).
2020-12-16 20:12:49 +02:00
OCA-git-bot
cd980b6fc8 [UPD] README.rst 2020-03-09 15:10:38 +00:00
Kevin Khao
588e8e0daa [IMP] base_user_role: Added multicompany support from commit server-tool repo commit 840c2c1119460424230c935da24ec42f95c21122 2020-03-06 16:59:08 +01:00
hveficent
2f3402ed1b [12.0][FIX] readme 2018-12-11 14:45:46 +01:00
OCA-git-bot
4893159ceb [UPD] README.rst 2018-12-02 02:54:58 +00:00
OCA-git-bot
3f8b51b5a5 [UPD] README.rst 2018-11-19 17:18:54 +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
Duc Dao
e63b03047b [MIG] base_user_role: Migration to 11.0 2018-11-19 18:00:21 +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