<field name="type">form</field>
<field name="arch" type="xml">
<form string="Partner Contact">
- <field name="name" select="1"/>
- <field name="first_name" select="1"/>
+ <group colspan="4" col="6">
+ <field name="title" select="1" widget="selection" domain="[('domain', '=', 'contact')]" size="0"/>
+ <field name="name" select="1"/>
+ <field name="first_name" select="1"/>
+ </group>
<notebook colspan="4" >
- <page string="General">
- <newline/>
- <separator string="General Information" colspan="4"/>
- <group string="Partner" colspan="2" col="2">
- <field name="partner_id" invisible="1" select="1"/>
- <field name="title" select="1"/>
- <field name="function" invisible="1"/>
- <field name="email"/>
- <field name="lang_id"/>
- <field name="active"/>
- </group>
- <group string="Communication" colspan="2" col="2">
- <field name="mobile"/>
- <field name="email" widget="email"/>
- <field name="website"/>
- </group>
+ <page string="General">
+ <group colspan="4" col="4">
+ <group colspan="2" col="4">
+ <separator string="Communication" colspan="4"/>
+ <field name="mobile"/>
+ <field name="email" widget="email"/>
+ <field name="website"/>
+ </group>
+ <group colspan="2" col="1">
+ <separator string="Photo" colspan="4"/>
+ <field name="photo" widget='image' nolabel="1"/>
+ </group>
+ </group>
<field name="job_ids" colspan="4" nolabel="1" mode="tree,form">
<form string="Functions and Addresses">
- <group string="Partner" colspan="2" col="4">
+ <group colspan="4" col="4">
+ <field name="sequence_contact" />
<field name="function"/>
- <field name="address_id"/>
- <field name="name"/>
+ <field name="name" on_change="onchange_name(name,address_id)"/>
+ <field name="address_id"/>
<field name="date_start" />
<field name="date_stop" />
<field name="state" />
- <field name="sequence_contact" />
+
</group>
- <group string="Communication" colspan="2" col="2">
+ <separator string="Communication" colspan="4"/>
+ <group colspan="4" col="4">
<field name="phone"/>
<field name="fax"/>
<field name="email" widget="email"/>
<tree string="Functions and Addresses">
<field name="sequence_contact" string="Seq."/>
<field name="function"/>
- <field name="name"/>
- <field name="address_id"/>
+ <field name="name" on_change="onchange_partner(name)"/>
+ <field name="address_id" attrs="{'required': [('name', '!=', False)]}" on_change="onchange_address(address_id)"/>
<field name="phone"/>
<field name="fax"/>
<field name="extension"/>
</tree>
</field>
</page>
- <page string="Extra Information">
+ <page string="Extra Information">
+ <field name="active"/>
+ <field name="lang_id" widget="selection"/>
+ <field name="partner_id" invisible="1" select="1"/>
+ <field name="function" invisible="1" />
<field name="country_id"/>
<field name="birthdate"/>
</page>
<page string="Notes">
<field name="comment" nolabel="1"/>
</page>
- <page string="Picture">
- <field name="photo" nolabel="1" colspan="2" widget="image"/>
- </page>
+
</notebook>
</form>
</field>
<field name="email"/>
</tree>
<form string="Contacts">
- <group string="Partner" colspan="2" col="2">
+ <group colspan="4" col="4">
<field name="sequence_partner"/>
- <field name="name"/>
<field name="contact_id"/>
<field name="function"/>
</group>
- <group string="Communication" colspan="2" col="2">
+ <separator string="Communication" colspan="4"/>
+ <group colspan="4" col="4">
<field name="phone"/>
<field name="fax"/>
<field name="extension"/>
<field name="other"/>
<field name="email" widget="email"/>
- <field name="extension"/>
- <field name="other"/>
</group>
</form>
</field>
<!-- Act window defining a shorcut on partner address to open all his jobs -->
<act_window
- id="act_res_partner_jobs" name="Open Jobs"
- domain="[('address_id', '=', active_id)]"
+ id="act_res_partner_jobs"
+ name="Open Jobs"
+ context="{'search_default_address_id': [active_id]}"
res_model="res.partner.job"
src_model="res.partner.address"
/>