Browse Source

Adapt user form to display first name and last name like partner form

pull/2/head
Sandy Carter 11 years ago
parent
commit
473ffe06ea
  1. 19
      partner_firstname/res_user_view.xml

19
partner_firstname/res_user_view.xml

@ -1,16 +1,29 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<openerp> <openerp>
<data> <data>
<!-- Replace name with first name and last name -->
<record id="view_users_form" model="ir.ui.view"> <record id="view_users_form" model="ir.ui.view">
<field name="name">res.users.form.firstname</field> <field name="name">res.users.form.firstname</field>
<field name="model">res.users</field> <field name="model">res.users</field>
<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">
<field name="name" position="attributes">
<attribute name="readonly">False</attribute>
<attribute name="required">True</attribute>
<label for="name" position="replace">
<label for="firstname" class="oe_edit_only"/>
</label>
<field name="name" position="replace">
<field name="firstname"/>
</field> </field>
<label for="login" position="before">
<label for="lastname" class="oe_edit_only"/>
<h1><field name="lastname"/></h1>
</label>
</field> </field>
</record> </record>
</data> </data>
</openerp> </openerp>
Loading…
Cancel
Save