Skip to content

Commit

Permalink
[FIX] base_user_role_company: remove role_id domain
Browse files Browse the repository at this point in the history
This commit removes the domain added on role_id in base_user_role
module.
The domain is not needed if we use this modules as we have to choose the
same role for the multiple company
  • Loading branch information
amkarthik committed Aug 16, 2023
1 parent c275ccb commit 4d0644c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions base_user_role_company/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"depends": ["base_user_role"],
"data": [
"views/role.xml",
"views/user.xml",
],
"installable": True,
"auto_install": True,
Expand Down
16 changes: 16 additions & 0 deletions base_user_role_company/views/user.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2014 ABF OSIELL <http://osiell.com>
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
-->
<odoo>
<record id="view_res_users_form_inherit" model="ir.ui.view">
<field name="name">res.users.form.inherit</field>
<field name="model">res.users</field>
<field name="inherit_id" ref="base_user_role.view_res_users_form_inherit" />
<field name="arch" type="xml">
<xpath expr="//field[@name='role_id']" position="attributes">
<attribute name="domain" />
</xpath>
</field>
</record>
</odoo>

0 comments on commit 4d0644c

Please sign in to comment.