Browse Source

[REF] base_partner_surname : refactor view

(../addons/extra-trunk rev 5822)
pull/7/head
sebastien beau 12 years ago
parent
commit
975614f4e8
  1. 31
      base_partner_surname/partner_view.xml

31
base_partner_surname/partner_view.xml

@ -21,35 +21,12 @@
<field name="type">form</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<field name="address" position='replace'>
<field colspan="4" mode="form,tree" name="address" nolabel="1" select="1" height="260">
<form string="Partner Contacts">
<field name="name" />
<field name="title" domain="[('domain', '=', 'contact')]"/>
<field name="first_name" select="1" on_change="onchange_name(first_name,last_name)"/>
<field name="last_name" select="1" on_change="onchange_name(first_name,last_name)"/>
<field name="function"/>
<field name="type" />
<newline/>
<field name="street" />
<field name="street2"/>
<newline/>
<field name="zip" />
<field name="city" />
<newline/>
<field name="country_id" />
<field name="state_id" />
<xpath expr="/form/notebook/page[@string='General']/field/form/group/field[@name='name']" position="before">
<field name="first_name" on_change="onchange_name(first_name,last_name)"/>
<field name="last_name" on_change="onchange_name(first_name,last_name)"/>
<newline />
<field name="phone"/>
<field name="fax"/>
<newline/>
<field name="mobile"/>
<field name="email" widget="email" />
</form>
</field>
</field>
</xpath>
</field>
</record>
</data>
</openerp>
Loading…
Cancel
Save