~savoirfairelinux-openerp/partner-contact-management/base_contact_by_functions

« back to all changes in this revision

Viewing changes to partner_firstname/partner_view.xml

[MRG] Merge with upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
          </group>
33
33
        </field>
34
34
        <!-- Add firstname and last name in inner contact form of child_ids -->
35
 
        <xpath expr="//form[@string='Contact']/sheet/div/h1/field[@name='name']" position="after">
36
 
            <field name="lastname"/>
 
35
        <xpath expr="//form[@string='Contact']/sheet/div" position="after">
 
36
           <group attrs="{'invisible': [('is_company', '=', True)]}">
 
37
            <field name="lastname" attrs="{'required': [('is_company', '=', False)]}"/>
37
38
            <field name="firstname"/>
38
 
        </xpath>
 
39
           </group> 
 
40
        </xpath>
 
41
        <xpath expr="//form[@string='Contact']/sheet/div/h1" position="after">
 
42
           <field name="is_company" on_change="onchange_type(is_company)" class="oe_inline"/>
 
43
           <label for="is_company" string="Is a Company?"/>)
 
44
        </xpath>
 
45
 
 
46
 
39
47
      </field>
40
48
    </record>
41
49