[IMP] res_users: improved form view according to task specifications (button -> link, partner_id visible, active moved outside access rights).
bzr revid: tde@openerp.com-20130524112648-8nsbhfnutq3v4u4e
This commit is contained in:
@@ -129,7 +129,7 @@
|
||||
<field name="id" invisible="1"/>
|
||||
<div class="oe_right oe_button_box">
|
||||
<button string="Change Password" type="action" name="%(change_password_wizard_action)d"
|
||||
help="Change the user password."/>
|
||||
class="oe_link" help="Change the user password."/>
|
||||
</div>
|
||||
<field name="image" widget='image' class="oe_avatar oe_left" options='{"preview_image": "image_medium"}'/>
|
||||
<div class="oe_title">
|
||||
@@ -140,12 +140,14 @@
|
||||
<h2><field name="login" on_change="on_change_login(login)"/></h2>
|
||||
<label for="company_id" class="oe_edit_only" groups="base.group_multi_company"/>
|
||||
<field name="company_id" context="{'user_preference': 0}" groups="base.group_multi_company"/>
|
||||
<group>
|
||||
<field name="partner_id" readonly="1" required="0" groups="base.group_no_one"
|
||||
attrs="{'invisible': [('id', '=', False)]}"/>
|
||||
<field name="active"/>
|
||||
</group>
|
||||
</div>
|
||||
<notebook colspan="4">
|
||||
<page string="Access Rights">
|
||||
<group>
|
||||
<field name="active"/>
|
||||
</group>
|
||||
<group string="Allowed Companies" groups="base.group_multi_company">
|
||||
<field name="company_ids" nolabel="1" widget="many2many_tags"/>
|
||||
</group>
|
||||
|
||||
Reference in New Issue
Block a user