Browse Source

[FIX] layout for contact view (display Firstname and Lastname label) + add Is a company on contact view of a partner

pull/2/head
Vincent Renaville 11 years ago
parent
commit
4350e2baf2
  1. 12
      partner_firstname/partner_view.xml

12
partner_firstname/partner_view.xml

@ -32,10 +32,18 @@
</group> </group>
</field> </field>
<!-- Add firstname and last name in inner contact form of child_ids --> <!-- Add firstname and last name in inner contact form of child_ids -->
<xpath expr="//form[@string='Contact']/sheet/div/h1/field[@name='name']" position="after">
<field name="lastname"/>
<xpath expr="//form[@string='Contact']/sheet/div" position="after">
<group attrs="{'invisible': [('is_company', '=', True)]}">
<field name="lastname" attrs="{'required': [('is_company', '=', False)]}"/>
<field name="firstname"/> <field name="firstname"/>
</group>
</xpath>
<xpath expr="//form[@string='Contact']/sheet/div/h1" position="after">
<field name="is_company" on_change="onchange_type(is_company)" class="oe_inline"/>
<label for="is_company" string="Is a Company?"/>)
</xpath> </xpath>
</field> </field>
</record> </record>

Loading…
Cancel
Save