Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
205 commits
Select commit Hold shift + click to select a range
ed2e13d
8.0 - New module 'base_user_role' to manage user roles efficiently (#…
sebalix Dec 9, 2016
017af7d
base_user_role: display roles as first tab in user form
sbidoul Dec 10, 2016
f277984
base_user_role - Set a default category to associated groups
sebalix Dec 10, 2016
d9bc3ab
[MIG] base_user_role: Port to 10.0
Jan 2, 2017
fe510c3
[FIX] Crash in base_user_role when role_id is not set on res.users.ro…
alexis-via Jun 12, 2017
a1c6684
[10.0][FIX] User group not updating when removing a user from the rol…
benwillig Aug 11, 2017
9cd3515
[MIG] base_user_role: Migration to 11.0
Nov 19, 2017
c5be0ba
[FIX+IMP] base_user_role: Several things:
sebalix Sep 21, 2017
e51b19e
[MIG] Update test cases for testing (unlink role and role line) to ne…
Nov 23, 2017
1482799
[IMP] Use default user to define default roles to create for a new user
benwillig Oct 12, 2017
53e7958
[UPD] Update base_user_role.pot
oca-travis Aug 30, 2018
69b9b99
Translated using Weblate (Danish)
hhgabelgaard Aug 30, 2018
bb0822e
[MIG] base_user_role: Migration to 12.0
Oct 14, 2018
b753063
[UPD] README.rst
OCA-git-bot Nov 19, 2018
acece0f
[UPD] Update base_user_role.pot
oca-travis Nov 19, 2018
7ceecf2
Update translation files
oca-transbot Nov 25, 2018
6e9c608
[UPD] README.rst
OCA-git-bot Dec 2, 2018
4e92e51
[12.0][FIX] readme
HviorForgeFlow Dec 11, 2018
b919bb1
[UPD] README.rst
OCA-git-bot Feb 11, 2019
3fb4543
[MIG] base_import_match: Migration to 12.0
ernestotejeda Feb 8, 2019
720dcf5
[base_user_role] improve performance by only adding/removing from a user
JordiBForgeFlow Jan 2, 2019
fcec52b
[UPD] README.rst
OCA-git-bot Jul 29, 2019
6c4ff8a
[10.0][UPD] base_user_role: Disabled Administrator user selection in …
artux404 Jun 12, 2018
c54ae26
Switch AGPL to LGPL license
elicoidal Dec 29, 2018
fb45db4
Revert "[FIX] Crash in base_user_role when role_id is not set on res.…
Jan 29, 2019
13ff1c4
Make user_id and role_id required in base_user_role_line
Jan 29, 2019
f724897
[IMP] make base_user_role_line company dependent
Jan 29, 2019
e938061
FIX check_company
Feb 14, 2019
57e376f
[MIG] base_user_role: Migration to 13.0
sebalix Oct 1, 2019
ee1741c
[IMP] base_user_role: black, isort
sebalix Dec 16, 2019
e72494b
[UPD] Update base_user_role.pot
oca-travis Jan 30, 2020
cac459d
[UPD] README.rst
OCA-git-bot Jan 30, 2020
6fcb47e
Update translation files
oca-transbot Jan 31, 2020
c5920ae
Translated using Weblate (Spanish (Mexico))
alan196 Feb 15, 2020
0880896
pre-commit update
OCA-git-bot Mar 14, 2020
b51a14c
Translated using Weblate (French)
houzefa-abba Sep 28, 2020
0d91e33
[MIG] base_user_role: Migration to 14.0
alan196 Oct 12, 2020
a39a2d7
[UPD] Update base_user_role.pot
oca-travis Dec 16, 2020
41bb525
[IMP] Fix edition of role
sebastienbeau Dec 20, 2020
0f28eb2
[IMP] base_user_role: Adding a new tab for user comments in roles form.
HaraldPanten Dec 21, 2020
7615ed6
[UPD] Update base_user_role.pot
oca-travis Dec 30, 2020
56cee60
[UPD] README.rst
OCA-git-bot Dec 30, 2020
47ce9f3
base_user_role 14.0.1.1.0
OCA-git-bot Dec 30, 2020
0ec68dc
Update translation files
oca-transbot Dec 30, 2020
bbf1774
[FIX] base_user_role: remove multicompany functionality
kevinkhao Jan 25, 2021
4d6f827
[UPD] Update base_user_role.pot
oca-travis Jan 27, 2021
87a89ad
base_user_role 14.0.2.0.0
OCA-git-bot Jan 27, 2021
3908c1c
Update translation files
oca-transbot Jan 27, 2021
5fb4e7e
[IMP] base_user_role: UX improvements
kevinkhao Jan 25, 2021
b3138f2
[UPD] Update base_user_role.pot
oca-travis Jan 28, 2021
38a6663
[UPD] README.rst
OCA-git-bot Jan 28, 2021
ef4758d
base_user_role 14.0.2.1.0
OCA-git-bot Jan 28, 2021
0f7f168
Update translation files
oca-transbot Jan 28, 2021
69ec3e7
base_user_role 14.0.2.1.1
OCA-git-bot Feb 12, 2021
816c3bd
Translated using Weblate (Spanish)
anasuarez1 Mar 16, 2021
426ed7e
Translated using Weblate (Vietnamese)
minhdc Sep 25, 2021
04018d5
[MIG] base_user_role: Migration to 15.0
Nov 11, 2021
b847ec0
[UPD] Update base_user_role.pot
Nov 27, 2021
ecad82a
[UPD] README.rst
OCA-git-bot Nov 27, 2021
a6e23da
Translated using Weblate (Catalan)
pablontura Apr 13, 2022
9756b06
FIX base_user_role: use ``sudo()`` in ``user_ids`` compute
SilvioC2C May 26, 2022
c712fe6
FIX base_user_role: update tests
SilvioC2C May 26, 2022
217085a
[IMP]base_user_role: Groups-roles navigation
GuillemCForgeFlow Apr 19, 2022
8a6b6c6
[UPD] Update base_user_role.pot
Jun 20, 2022
80654a3
[UPD] README.rst
OCA-git-bot Jun 20, 2022
0df3e46
base_user_role 15.0.0.1.0
OCA-git-bot Jun 20, 2022
0c2ad1b
Update translation files
oca-transbot Jun 20, 2022
edb17eb
[15.0][FIX] UserWarning: Field res.groups.trans_parent_ids should be …
elmeriniemela Jul 11, 2022
d0de45a
[FIX] base_user_role: tests - include `trans_implied_ids`
kirca Aug 8, 2022
deec4d7
base_user_role 15.0.0.1.1
OCA-git-bot Aug 11, 2022
542b3e5
[FIX] base_user_role: text on role Internal Notes was not saved
dreispt Jan 31, 2022
9b5ad51
[13.0][FIX]base_user_role: Add compute_sudo
GuillemCForgeFlow Apr 26, 2022
a797e19
[13.0][FIX]base_user_role: Show active users on Users page
GuillemCForgeFlow May 25, 2022
ab005bd
[UPD] Update base_user_role.pot
Aug 11, 2022
cce66b0
base_user_role 15.0.0.2.0
OCA-git-bot Aug 11, 2022
4d51f17
Update translation files
oca-transbot Aug 11, 2022
a2357e9
base_user_role 15.0.0.2.1
OCA-git-bot Aug 11, 2022
f725934
[IMP] base_user_role: black, isort, prettier
apineux Aug 16, 2022
b8d2ddb
[MIG] base_user_role: Migration to 16.0
apineux Aug 16, 2022
c70eedd
[UPD] Update base_user_role.pot
Oct 18, 2022
b233754
[UPD] README.rst
OCA-git-bot Oct 18, 2022
c0b7226
[IMP] base_user_role show rules and access
Kev-Roche Jun 27, 2022
ea084e1
Update translation files
weblate Oct 18, 2022
cd6875e
[UPD] Update base_user_role.pot
Oct 20, 2022
e6d027e
base_user_role 16.0.1.1.0
OCA-git-bot Oct 20, 2022
2aaa47e
Update translation files
weblate Oct 20, 2022
0c2c9c8
[DOC] base_user_role: set development status to 'Production/Stable'
Oct 18, 2022
2e8fc49
[UPD] README.rst
OCA-git-bot Oct 20, 2022
aedf0a5
base_user_role 16.0.1.1.1
OCA-git-bot Oct 20, 2022
b24b976
[UPD] Update base_user_role.pot
Jan 26, 2023
1bc384f
Update translation files
weblate Jan 26, 2023
14d6dd4
Add "Create role from user" feature
gpothier Jun 20, 2023
507b388
Fix formatting according to pre-commit hook
gpothier Jun 21, 2023
8720d06
Make name field required
gpothier Jun 21, 2023
0ab64fa
Simplify wizard name
gpothier Jun 21, 2023
e3eda99
Undo changes to README and put them in the files in the readme direct…
gpothier Jun 21, 2023
b2078c8
Fix model name change in views
gpothier Jun 21, 2023
7c128c5
Add test for the create role from user wizard
gpothier Jun 21, 2023
08c1301
Use kwargs in with_context, as per pre-commit recommendation
gpothier Jun 21, 2023
83a8e5c
Translated using Weblate (Italian)
francesco-ooops Jun 22, 2023
9261272
[UPD] Update base_user_role.pot
Jun 24, 2023
b8e93c0
[UPD] README.rst
OCA-git-bot Jun 24, 2023
49f0226
base_user_role 16.0.1.2.0
OCA-git-bot Jun 24, 2023
f2f127a
Update translation files
weblate Jun 24, 2023
f59ea8f
[FIX] base_user_role: filter domain for user role search
JordiMForgeFlow Jul 6, 2023
1166f1e
base_user_role 16.0.1.2.1
OCA-git-bot Jul 10, 2023
9ac131f
Translated using Weblate (Italian)
francesco-ooops Jul 11, 2023
727a5ea
Translated using Weblate (French)
ypapouin Jul 17, 2023
4576b4e
Translated using Weblate (Spanish)
Ivorra78 Aug 25, 2023
d06af91
Translated using Weblate (Spanish)
kikopeiro Aug 28, 2023
edb4951
Translated using Weblate (Portuguese)
pedrocs-exo Aug 31, 2023
77ae8d8
[UPD] README.rst
OCA-git-bot Sep 3, 2023
bcaccb5
Translated using Weblate (Italian)
francesco-ooops Sep 7, 2023
3ebcd21
base_user_role - add (copy) in order to allow the duplicate
jdidderen Sep 11, 2023
cee6b24
[UPD] Update base_user_role.pot
Sep 11, 2023
a999263
base_user_role 16.0.1.2.2
OCA-git-bot Sep 11, 2023
7e98638
[UPD] README.rst
OCA-git-bot Sep 11, 2023
ea7dc93
Update translation files
weblate Sep 20, 2023
bfa76c4
Translated using Weblate (Spanish)
Ivorra78 Oct 3, 2023
194611c
[IMP] base_user_role: pre-commit stuff
rven Dec 13, 2023
c7d05bd
[MIG] base_user_role: Migration to 17.0
rven Dec 13, 2023
7e06b0b
[15.0][IMP] base_user_role: Add role_ids column to tree view.
amh-mw Nov 15, 2023
551fb7b
[15.0][IMP] base_user_role: action to group groups into a role
ArnauCForgeFlow Jan 26, 2024
4ea17b4
[UPD] Update base_user_role.pot
Feb 9, 2024
8ef8b9b
[BOT] post-merge updates
OCA-git-bot Feb 9, 2024
61869fe
Update translation files
weblate Feb 9, 2024
c4090ca
Translated using Weblate (Spanish)
Ivorra78 Feb 14, 2024
b141619
Translated using Weblate (Italian)
mymage Feb 15, 2024
4f46da0
Translated using Weblate (Italian)
mymage Mar 6, 2024
7007c47
[FIX] base_user_role: Set group on access_wizard_groups_into_role
hwangh95 Apr 4, 2024
4634bf0
[BOT] post-merge updates
OCA-git-bot Apr 9, 2024
f0553ee
Translated using Weblate (Swedish)
jakobkrabbe Jun 12, 2024
87687ec
[IMP] base_user_role: Adding alert in user when role is used
jesusramoneda Jun 7, 2023
2c476f4
[UPD] Update base_user_role.pot
Jul 10, 2024
efd19e7
[BOT] post-merge updates
OCA-git-bot Jul 10, 2024
b7b28fa
Update translation files
weblate Jul 10, 2024
2634f92
Translated using Weblate (Italian)
mymage Jul 15, 2024
dd5cd0e
[FIX] base_user_role: prevent crash when using 'res.users' (x2m) fiel…
Jul 29, 2024
ec62b90
[BOT] post-merge updates
OCA-git-bot Jul 31, 2024
7d347d4
[IMP] base_user_role: pre-commit stuff
BertVGroenendael Oct 21, 2024
4910f4b
[IMP] base_user_role: pre-commit stuff
BertVGroenendael Oct 21, 2024
6813a54
[18.0][MIG] base_user_role
BertVGroenendael Oct 21, 2024
80c8356
[UPD] Update base_user_role.pot
Nov 27, 2024
5579a2a
[BOT] post-merge updates
OCA-git-bot Nov 27, 2024
81b539e
Update translation files
weblate Nov 27, 2024
5182e16
Translated using Weblate (Italian)
mymage Nov 28, 2024
0677ba1
[FIX] base_user_role: Improve tests resiliency
yajo Nov 13, 2019
f74547f
[IMP] base_user_role: Improve tests to avoid false errors (ids in dif…
victoralmau Feb 1, 2024
a8bd2e8
[BOT] post-merge updates
OCA-git-bot Jan 29, 2025
c118a3d
[IMP] base_user_role - add path in act_window to fit with new url logic
jdidderen Jan 27, 2025
bbcc34e
[BOT] post-merge updates
OCA-git-bot Mar 5, 2025
b0b8607
Translated using Weblate (Turkish)
bo-eska May 26, 2025
d0daec5
[FIX] base_user_role: fix field name ambiguity
StefanRijnhart Aug 12, 2025
26295b9
[UPD] Update base_user_role.pot
Aug 13, 2025
abd31ee
[BOT] post-merge updates
OCA-git-bot Aug 13, 2025
a0c47d1
Update translation files
weblate Aug 13, 2025
29f891b
Translated using Weblate (Turkish)
bo-eska Aug 14, 2025
78c8915
Translated using Weblate (Italian)
mymage Aug 16, 2025
c63c7b5
[19.0][MIG] base_user_role: Migration to 19.0
Oct 9, 2025
06535f1
[IMP] pre-commit auto-fixes
Oct 9, 2025
0c3b25c
[19.0][MIG] base_user_role: use fields.Command for x2many ops
Nov 9, 2025
99f7498
[19.0][MIG] base_user_role: default roles via is_default
Nov 9, 2025
60e81cf
[19.0][MIG] base_user_role: rename user_ids to role_user_ids
JohanEndare Nov 25, 2025
8857ecd
[UPD] Update base_user_role.pot
Nov 27, 2025
0d9429e
[BOT] post-merge updates
OCA-git-bot Nov 27, 2025
bb12e30
[FIX] base_user_role: Fixes group view inheritance to show "User Role…
NachoAlesLopez Jan 15, 2026
cfc622d
Translated using Weblate (Slovenian)
sysadminmatmoz Jan 22, 2026
3685a1f
[UPD] Update base_user_role.pot
Feb 10, 2026
561a0b7
[BOT] post-merge updates
OCA-git-bot Feb 10, 2026
99cc97d
Update translation files
weblate Feb 10, 2026
f08084f
Translated using Weblate (Italian)
mymage Feb 12, 2026
460f1bb
[FIX] base_user_role: Define users with different names to avoid pote…
victoralmau Apr 22, 2026
ef19404
[UPD] Update base_user_role.pot
Apr 23, 2026
ea25b1b
[BOT] post-merge updates
OCA-git-bot Apr 23, 2026
7196722
Update translation files
weblate Apr 23, 2026
dbcdcab
Translated using Weblate (Italian)
mymage Apr 27, 2026
a2f86a4
[19.0][FIX] base_user_role: Cannot see User Roles in list view, even …
namtnt Mar 4, 2026
c6d2f01
Translated using Weblate (Danish)
LauraVForgeFlow Jun 18, 2026
d387154
Translated using Weblate (Swedish)
LauraVForgeFlow Jun 18, 2026
71047c9
[FIX] base_user_role: make role_user_ids searchable
AaronHForgeFlow Jul 2, 2026
9e6aaf9
Translated using Weblate (German)
intero-chd Jul 5, 2026
c65f03d
Translated using Weblate (German)
intero-chd Jul 5, 2026
44e10a1
Translated using Weblate (Danish)
LauraVForgeFlow Jul 6, 2026
e936c74
Translated using Weblate (Slovenian)
sysadminmatmoz Jul 25, 2026
70c1a19
[UPD] Update base_user_role.pot
Sep 4, 2026
d7e7ab8
[BOT] post-merge updates
OCA-git-bot Sep 4, 2026
dc6e19a
Update translation files
weblate Sep 4, 2026
66029a1
[FIX] base_user_role: don't reset notification_type
jhemono Jul 30, 2025
90f5e8b
[18.0][IMP] base_user_role: New wizard to add multiple users
jqbeltran2 Oct 7, 2025
16c57d3
[FIX] base_user_role: don't trigger constraint res_users_notification…
StefanRijnhart Feb 10, 2026
252c092
[18.0][IMP] base_user_role: add a sequence on role and role line
nayatec Aug 11, 2026
ee93a8d
[IMP] sort on name as well
nayatec Sep 1, 2026
10b51c4
[UPD] Update base_user_role.pot
Sep 14, 2026
3597002
[BOT] post-merge updates
OCA-git-bot Sep 14, 2026
5750197
Update translation files
weblate Sep 14, 2026
efb02c7
[BOT] post-merge updates
OCA-git-bot Sep 14, 2026
4220669
[BOT] post-merge updates
OCA-git-bot Sep 14, 2026
b5920aa
[FIX] base_user_role: Support dynamic base.group_multi_company
amh-mw Dec 9, 2025
0bc5dcb
[BOT] post-merge updates
OCA-git-bot Sep 14, 2026
19c1096
Translated using Weblate (Italian)
mymage Sep 21, 2026
58996f7
[IMP] base_user_role: pre-commit auto fixes
Alexgars73 Oct 2, 2026
dcf4601
[MIG] base_user_role: Migration to 20.0
Alexgars73 Oct 2, 2026
24b1d9c
[FIX] base_user_role: keep role groups light in Odoo 20
alan196 Oct 10, 2026
b182241
[FIX] base_user_role: Odoo 20 icons and standard _inherits declaration
alan196 Oct 10, 2026
2b676e3
[FIX] base_user_role: light-group test independent of the installed apps
alan196 Oct 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
179 changes: 179 additions & 0 deletions base_user_role/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

==========
User roles
==========

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:47fa0373a52298c830e49ccab9c555e32e0dc5a9dd9c55a06b32066f8e273a3a
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
:target: https://odoo-community.org/page/development-status
:alt: Production/Stable
.. |badge2| image:: https://img.shields.io/badge/license-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--backend-lightgray.png?logo=github
:target: https://github.com/OCA/server-backend/tree/20.0/base_user_role
:alt: OCA/server-backend
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/server-backend-20-0/server-backend-20-0-base_user_role
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-backend&target_branch=20.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module was written to extend the standard functionality regarding
users and groups management. It helps creating well-defined user roles
and associating them to users.

It can become very hard to maintain a large number of user profiles over
time, juggling with many technical groups. For this purpose, this module
will help you to:

- define functional roles by aggregating low-level groups,
- set user accounts with the predefined roles (roles are cumulative),
- update groups of all relevant user accounts (all at once),
- ensure that user accounts will have the groups defined in their
roles (nothing more, nothing less). In other words, you can not set
groups manually on a user as long as there is roles configured on
it,
- activate/deactivate roles depending on the date (useful to plan
holidays, etc)
- get a quick overview of roles and the related user accounts.

That way you make clear the different responsabilities within a company,
and are able to add and update user accounts in a scalable and reliable
way.

**Table of contents**

.. contents::
:local:

Configuration
=============

To configure this module, you need to go to *Settings / Users / Roles*,
and create a new role. From there, you can add groups to compose your
role, and then associate users to it.

You can also define default roles for a new user by editing the user
called "Default User".

Roles:

|image1|

Add groups:

|image2|

Add users (with dates or not):

|image3|

Instead of creating roles from scratch, it is possible to create a role
based on the groups of an existing user: select or open the user and
choose "Create role from user" in the action menu.

.. |image1| image:: https://raw.githubusercontent.com/OCA/server-backend/16.0/base_user_role/static/description/roles.png
.. |image2| image:: https://raw.githubusercontent.com/OCA/server-backend/16.0/base_user_role/static/description/role_groups.png
.. |image3| image:: https://raw.githubusercontent.com/OCA/server-backend/16.0/base_user_role/static/description/role_users.png

Usage
=====

To use this module, you need to:

1. Go to Configuration / Users / Users choose user and set Roles:

|image|

.. |image| image:: https://raw.githubusercontent.com/OCA/server-backend/base_user_role/static/description/user_form.png

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-backend/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/server-backend/issues/new?body=module:%20base_user_role%0Aversion:%2020.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* ABF OSIELL

Contributors
------------

- Sébastien Alix <sebastien.alix@camptocamp.com>
- Duc, Dao Dong <duc.dd@komit-consulting.com>
(https://komit-consulting.com)
- Jean-Charles Drubay <jc@komit-consulting.com>
(https://komit-consulting.com)
- Alan Ramos <alan.ramos@jarsa.com.mx> (https://www.jarsa.com.mx)
- Harald Panten <harald.panten@sygel.es>
- Kevin Khao <kevin.khao@akretion.com>
- Tatiana Deribina <tatiana.deribina@sprintit.fi> (https://sprintit.fi)
- Guillem Casassas <guillem.casassas@forgeflow.com>
- Guillaume Pothier <gpothier@caligrafix.cl>

Do not contact contributors directly about support or help with
technical issues.

Other credits
-------------

Images
~~~~~~

- Oxygen Team:
`Icon <http://www.iconarchive.com/show/oxygen-icons-by-oxygen-icons.org/Actions-user-group-new-icon.html>`__
(LGPL)

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-sebalix| image:: https://github.com/sebalix.png?size=40px
:target: https://github.com/sebalix
:alt: sebalix
.. |maintainer-jcdrubay| image:: https://github.com/jcdrubay.png?size=40px
:target: https://github.com/jcdrubay
:alt: jcdrubay
.. |maintainer-novawish| image:: https://github.com/novawish.png?size=40px
:target: https://github.com/novawish
:alt: novawish

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-sebalix| |maintainer-jcdrubay| |maintainer-novawish|

This module is part of the `OCA/server-backend <https://github.com/OCA/server-backend/tree/20.0/base_user_role>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions base_user_role/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import wizards
27 changes: 27 additions & 0 deletions base_user_role/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright 2014 ABF OSIELL <http://osiell.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).


{
"name": "User roles",
"version": "20.0.1.0.0",
"category": "Tools",
"author": "ABF OSIELL, Odoo Community Association (OCA)",
"license": "LGPL-3",
"development_status": "Production/Stable",
"maintainers": ["sebalix", "jcdrubay", "novawish"],
"website": "https://github.com/OCA/server-backend",
"depends": ["base"],
"data": [
"security/ir.access.csv",
"data/ir_cron.xml",
"data/ir_module_category.xml",
"wizards/role_add_users_wizard_views.xml",
"views/role.xml",
"views/user.xml",
"views/group.xml",
"wizards/create_from_user.xml",
"wizards/wizard_groups_into_role.xml",
],
"installable": True,
}
15 changes: 15 additions & 0 deletions base_user_role/data/ir_cron.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Copyright 2016 ABF OSIELL <http://osiell.com>
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
-->
<odoo noupdate="1">
<record id="cron_update_users" model="ir.cron">
<field name='name'>Update user roles</field>
<field name="interval_number" eval="3" />
<field name='interval_type'>hours</field>
<field name="active" eval="True" />
<field name="model_id" ref="base_user_role.model_res_users_role" />
<field name="state">code</field>
<field name="code">model.cron_update_users()</field>
</record>
</odoo>
15 changes: 15 additions & 0 deletions base_user_role/data/ir_module_category.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Copyright 2016 ABF OSIELL <http://osiell.com>
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
-->
<odoo>
<!--
This module category aims to be linked to role/group you create in your own
module (field 'res.groups.category_id').
By doing this you'll have the section 'User roles' in the "Access rights" tab
on the user form which will regroup all roles/groups for a better visibility.
-->
<record id="ir_module_category_role" model="ir.module.category">
<field name='name'>User roles</field>
</record>
</odoo>
Loading
Loading