Browse Source

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

pull/2/head
unknown 11 years ago
committed by Yannick Vaucher
parent
commit
5bb7b137bc
  1. 12
      partner_firstname/partner_view.xml

12
partner_firstname/partner_view.xml

@ -32,10 +32,18 @@
</group>
</field>
<!-- 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"/>
</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>
</field>
</record>

Loading…
Cancel
Save