Browse Source

[IMP] don't show first/last name fields for companies

pull/487/head
Holger Brunn 11 years ago
committed by Enric Tobella
parent
commit
d186798edb
  1. 10
      partner_firstname/partner_view.xml

10
partner_firstname/partner_view.xml

@ -5,8 +5,11 @@
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_simple_form"/>
<field name="arch" type="xml">
<field name="name" position="attributes">
<attribute name="attrs">{'readonly': [('is_company', '=', False)]}</attribute>
</field>
<field name="category_id" position="before">
<group>
<group attrs="{'invisible': [('is_company', '=', True)]}">
<field name="lastname"/>
<field name="firstname"/>
</group>
@ -19,8 +22,11 @@
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<field name="name" position="attributes">
<attribute name="attrs">{'readonly': [('is_company', '=', False)]}</attribute>
</field>
<field name="category_id" position="before">
<group>
<group attrs="{'invisible': [('is_company', '=', True)]}">
<field name="lastname"/>
<field name="firstname"/>
</group>

Loading…
Cancel
Save