[IMP] base: Don't display a button to change password
Purpose ======= in an empty db, when creating manually a user, there is some noise on the form Specification ============= - Rename application into "Application Accesses" - Remove the button to change password, just keep the action, normally, you don't have to do that.
This commit is contained in:
committed by
Yannick Tivisse
parent
4fe90a4fb4
commit
75df823347
@@ -716,7 +716,7 @@ class GroupsView(models.Model):
|
||||
if view and view.exists() and view._name == 'ir.ui.view':
|
||||
group_no_one = view.env.ref('base.group_no_one')
|
||||
xml1, xml2 = [], []
|
||||
xml1.append(E.separator(string=_('Application'), colspan="2"))
|
||||
xml1.append(E.separator(string=_('Application Accesses'), colspan="2"))
|
||||
for app, kind, gs in self.get_groups_by_application():
|
||||
# hide groups in categories 'Hidden' and 'Extra' (except for group_no_one)
|
||||
attrs = {}
|
||||
|
||||
@@ -171,7 +171,6 @@
|
||||
<field name="arch" type="xml">
|
||||
<form string="Users">
|
||||
<header>
|
||||
<button string="Change Password" type="action" name="%(change_password_wizard_action)d" help="Change the user password."/>
|
||||
</header>
|
||||
<sheet>
|
||||
<field name="id" invisible="1"/>
|
||||
|
||||
Reference in New Issue
Block a user