mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
[IMP] base_user_role: Adding alert in user when role is used
This commit is contained in:
committed by
Christopher Rogos
parent
fe74ac99ed
commit
b7578b9034
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user