Browse Source

Merge pull request #362 from ecoservice/9.0

[FIX] partner_firstname: fix for address 'type'
pull/364/head
Pedro M. Baeza 8 years ago
committed by GitHub
parent
commit
5f70731ecf
  1. 18
      partner_firstname/views/res_partner.xml

18
partner_firstname/views/res_partner.xml

@ -19,10 +19,12 @@
<group attrs="{'invisible': [('is_company', '=', True)]}">
<field name="lastname" attrs=
"{'required': [('firstname', '=', False),
('is_company', '=', False)]}"/>
('is_company', '=', False),
('type', '=', 'contact')]}"/>
<field name="firstname" attrs=
"{'required': [('lastname', '=', False),
('is_company', '=', False)]}"/>
('is_company', '=', False),
('type', '=', 'contact')]}"/>
</group>
</xpath>
</data>
@ -47,10 +49,12 @@
<group attrs="{'invisible': [('is_company', '=', True)]}">
<field name="lastname" attrs=
"{'required': [('firstname', '=', False),
('is_company', '=', False)]}"/>
('is_company', '=', False),
('type', '=', 'contact')]}"/>
<field name="firstname" attrs=
"{'required': [('lastname', '=', False),
('is_company', '=', False)]}"/>
('is_company', '=', False),
('type', '=', 'contact')]}"/>
</group>
</div>
</xpath>
@ -71,10 +75,12 @@
<group attrs="{'invisible': [('is_company', '=', True)]}">
<field name="lastname" attrs=
"{'required': [('firstname', '=', False),
('is_company', '=', False)]}"/>
('is_company', '=', False),
('type', '=', 'contact')]}"/>
<field name="firstname" attrs=
"{'required': [('lastname', '=', False),
('is_company', '=', False)]}"/>
('is_company', '=', False),
('type', '=', 'contact')]}"/>
</group>
</div>
</xpath>

Loading…
Cancel
Save