Browse Source

[ADD][reset_user_access_right] Add confirm attribute on button

pull/267/head
Adrien Peiffer (ACSONE) 9 years ago
parent
commit
eb78b2ddce
  1. 3
      reset_user_access_right/views/res_users_view.xml

3
reset_user_access_right/views/res_users_view.xml

@ -7,7 +7,8 @@
<field name="inherit_id" ref="base.view_users_form" /> <field name="inherit_id" ref="base.view_users_form" />
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//group[@string='Allowed Companies']" position="before"> <xpath expr="//group[@string='Allowed Companies']" position="before">
<button name="reset_access_right" string="Reset Access Right" type="object" />
<button name="reset_access_right" string="Reset Access Right" type="object"
confirm="This will reset the user's access rights to the minimum configuration. Are you sure?"/>
</xpath> </xpath>
</field> </field>
</record> </record>

Loading…
Cancel
Save