[IMP] base_user_role: Adding alert in user when role is used

This commit is contained in:
Jesus Ramoneda
2023-06-07 16:29:31 +02:00
committed by Christopher Rogos
parent fe74ac99ed
commit b7578b9034
3 changed files with 37 additions and 0 deletions

View File

@@ -24,8 +24,28 @@
</field>
</page>
</xpath>
<xpath expr="//page[@name='access_rights']/group" position="before">
<field name="show_alert" invisible="1" />
<div
class="alert alert-info text-center o_form_header"
invisible="not show_alert"
role="alert"
>
<div>
<strong
>The access rights of this user are managed by roles.</strong>
</div>
<div>
<em
>Any configuration changes made here will not be persistent.</em>
</div>
<a class="close" data-bs-dismiss="alert" href="#">x</a>
</div>
</xpath>
</field>
</record>
<record id="view_res_users_search_inherit" model="ir.ui.view">
<field name="name">res.users.search.inherit</field>
<field name="model">res.users</field>