OdooWiki OCA HUB

User profiles example

base_user_role_profile_example folder_open OCA/server-backend open_in_new
Tools License: AGPL-3

This shows an example of base_user_role_profile in use.

auto_awesome What this module does

AI-generated from the code · Odoo 12.0

This is a demonstration module that shows how user profiles and roles work in Odoo. It creates example profiles (Merchant, HR, ERP Settings) and assigns them to the demo user so you can see how permissions are grouped.

This module does not add new screens or business logic; it only loads demonstration data to illustrate the 'User profiles' feature provided by the base_user_role_profile module.

When installed, it creates a second company called 'Company, The Second' and gives the standard demo user access to it, so multi-company behaviour can be tested.

It then creates three example profiles: 'Merchant Profile', 'HR profile' and 'ERP Settings profile'. Profiles are containers that group roles together.

Four example roles are created and linked to those profiles: - Role 1: Purchaser permissions (purchase manager rights) - Role 2: Sales permissions (sales manager rights) - Role 3: System permissions (ERP manager rights) - Role 4: HR permissions (HR manager rights)

Finally, the demo user is assigned several role lines, each tied to a specific company. This shows how the same user can hold different roles in different companies.

Because it depends on purchase, sales_team, sale_management and hr, the roles reference the standard permission groups of those apps. No menus, reports, scheduled actions or business rules are added by this module itself; it is purely an example dataset.

Depends on

base_user_role_profilepurchasesales_teamsale_managementhr

Text generated by AI (DeepSeek) from reading the Odoo 12.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 12.0

Confirmed on 2026-11-03 in branch 12.0 of OCA/server-backend.

terminal Installation and usage

OCA documentation · Odoo 12.0

Nothing to configure, just check the demo user.

Log in as the demo user, and observe on the upper right of the screen the widgets for profile selection and company selection. Use the widgets to manipulate user profile and companies for dynamic permissions/roles editing.

Note: "Merchant Profile" means the user is interested in sales and purchases, and thus has access only to those menus. Note that through configuration of roles and role lines, a merchant can be a sales user AND a purchase user in one company, or just a sales user (NOT a purchase user) in another company.

Here is a walkthrough:

  • Demo user starts in "YourCompany" company. Observe permissions and access to the root menus for sales and purchases.
  • Switch profile to HR profile, which gives access only to HR permissions. Observe that you can create new employees.
  • Switch company to "Company, The Second". Observe the menu has been reset, profile options have changed, one has been picked automatically from the available ones.
  • Switch profile to "Merchant Profile". Observe that for this company, you can only access Sales, because only a Sales role line has been defined for this company and user.
  • Switch profile to "ERP Settings profile". Observe that as expected you have ERP manager permissions.

No verified information in OCA: Installation.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.