File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ class ResUsersRoleLine(models.Model):
1515 domain = "[('id', 'in', allowed_company_ids)]" ,
1616 help = "If set, this role only applies when this is the main company selected."
1717 " Otherwise it applies to all companies." ,
18+ store = True ,
1819 )
1920
2021 @api .constrains ("user_id" , "company_id" )
Original file line number Diff line number Diff line change 1717 </xpath >
1818 </field >
1919 </record >
20+
21+ <record id =" view_res_users_role_form" model =" ir.ui.view" >
22+ <field name =" model" >res.users.role</field >
23+ <field name =" inherit_id" ref =" base_user_role.view_res_users_role_form" />
24+ <field name =" arch" type =" xml" >
25+ <field name =" user_id" position =" after" >
26+ <field name =" company_id" />
27+ </field >
28+ </field >
29+ </record >
30+
2031</odoo >
You can’t perform that action at this time.
0 commit comments