You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

115 lines
5.1 KiB

<openerp>
<data>
#---------------------------------------------------------------------------------------------------------
# Partner form->contact and tree view of address
#---------------------------------------------------------------------------------------------------------
<record model="ir.ui.view" id="base.view_partner_address_tree">
<field name="name">res.partner.address.tree</field>
<field name="model">res.partner.address</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Partner contacts">
<field name="partner_id" />
<field name="firstname" />
<field name="lastname" />
<field name="phone"/>
<field name="email"/>
<field name="zip"/>
<field name="city"/>
<field name="country_id"/>
<field name="type"/>
</tree>
</field>
</record>
<record model="ir.ui.view" id="view_partner_address_form1_inherit_ldap2">
<field name="name">res.partner.address.form1.c2c_partner_adress</field>
<field name="model">res.partner.address</field>
<field name="type">form</field>
<field name="inherit_id" ref="base.view_partner_address_form1" />
<field name="priority" eval="16" />
<field name="arch" type="xml">
<field name="name" position="replace">
<field name="name" invisible="1" select="2"/>
<field name="firstname"/>
<field name="lastname"/>
<newline/>
</field>
</field>
</record>
<record model="ir.ui.view" id="view_partner_address_form1_inherit_ldap">
<field name="name">res.partner.address.form1.c2c_partner_adress</field>
<field name="model">res.partner.address</field>
<field name="type">form</field>
<field name="inherit_id" ref="base.view_partner_address_form1" />
<field name="priority" eval="17" />
<field name="arch" type="xml">
<field name="mobile" position="after">
<field name="private_phone"/>
</field>
</field>
</record>
<!--
=========================================
the short form used in the partner form
=========================================
-->
<record model="ir.ui.view" id="view_partner_address_form_inerit_ldap">
<field name="name">res.partner.address.form2_c2c_partner_address</field>
<field name="model">res.partner.address</field>
<field name="type">form</field>
<field name="priority" eval="16" />
<field name="inherit_id" ref="base.view_partner_address_form2" />
<field name="arch" type="xml">
<field name="name" select="1" position="replace">
<field name="name" invisible="1" select="2"/>
<field name="firstname"/>
<field name="lastname"/>
<newline/>
</field>
</field>
</record>
<record model="ir.ui.view" id="view_partner_address_form2_inerit_ldap">
<field name="name">res.partner.address.form2_c2c_partner_address</field>
<field name="model">res.partner.address</field>
<field name="type">form</field>
<field name="inherit_id" ref="base.view_partner_address_form2" />
<field name="priority" eval="17" />
<field name="arch" type="xml">
<field name="mobile" position="after">
<field name="private_phone"/>
</field>
</field>
</record>
<!--
=========================================
the short form used in the res_partner standard form
=========================================
-->
<record model="ir.ui.view" id="view_partner_form_inherite_contact_ldap">
<field name="name">res.partner.form2_partner_address</field>
<field name="model">res.partner</field>
<field name="type">form</field>
<field name="inherit_id" ref="base.view_partner_form" />
<field name="arch" type="xml">
<xpath expr="/form/notebook/page/field[@name='address']/form/group/field[@name='mobile']" position="after">
<field name="private_phone"/>
</xpath>
<xpath expr="/form/notebook/page/field[@name='address']/form/group/field[@name='name']" position="replace">
<field name="firstname"/>
<field name="lastname"/>
<newline/>
</xpath>
</field>
</record>
</data>
</openerp>