<field name="name">res.partner.title.form</field>
<field name="model">res.partner.title</field>
<field name="arch" type="xml">
- <form string="Partner Titles" version="7.0">
+ <form string="Partner Titles">
<group col="4">
<field name="name"/>
<field name="shortcut"/>
<field name="email"/>
<field name="user_id" invisible="1"/>
<field name="is_company" invisible="1"/>
- <field name="country" invisible="1"/>
<field name="country_id" invisible="1"/>
<field name="parent_id" invisible="1"/>
</tree>
<field name="name">res.partner.simplified.form</field>
<field name="model">res.partner</field>
<field name="arch" type="xml">
- <form string="Contact" version="7.0">
+ <form string="Contact">
<field name="image" widget='image' class="oe_avatar oe_left" options='{"preview_image": "image_medium"}'/>
<div class="oe_title">
<div class="oe_edit_only">
<field name="model">res.partner</field>
<field eval="1" name="priority"/>
<field name="arch" type="xml">
- <form string="Partners" version="7.0">
+ <form string="Partners">
<sheet>
<field name="image" widget='image' class="oe_left oe_avatar" options='{"preview_image": "image_medium", "size": [90, 90]}'/>
<div class="oe_title oe_left">
<label for="street" string="Address"/>
<div>
- <field name="use_parent_address" class="oe_edit_only oe_inline"
- on_change="onchange_address(use_parent_address, parent_id)"
- attrs="{'invisible': [('parent_id','=', False),('use_parent_address','=',False)]}"/>
- <label for="use_parent_address" class="oe_edit_only" attrs="{'invisible': [('parent_id','=', False),('use_parent_address','=',False)]}"/>
+ <div class="oe_edit_only">
+ <field name="use_parent_address" class="oe_inline"
+ on_change="onchange_address(use_parent_address, parent_id)"
+ attrs="{'invisible': ['|', ('is_company', '=', True),('parent_id', '=', False)]}"/>
+ <label for="use_parent_address" attrs="{'invisible': ['|', ('is_company', '=', True), ('parent_id', '=', False)]}"/>
+ </div>
<button name="open_parent" type="object" string="(edit company address)" class="oe_link oe_edit_only"
attrs="{'invisible': ['|',('parent_id','=', False),('use_parent_address','=',False)]}"/>
<field name="street" placeholder="Street..." attrs="{'readonly': [('use_parent_address','=',True)]}"/>
<notebook colspan="4">
<page string="Contacts" attrs="{'invisible': [('is_company','=',False), ('child_ids', '=', [])]}" autofocus="autofocus">
- <field name="child_ids" mode="kanban" context="{'default_parent_id': active_id, 'default_street': street, 'default_street2': street2, 'default_city': city, 'default_state_id': state_id, 'default_zip': zip, 'default_country_id': country_id, 'default_supplier': supplier, 'default_customer': customer}">
+ <field name="child_ids" mode="kanban" context="{'default_parent_id': active_id, 'default_street': street, 'default_street2': street2, 'default_city': city, 'default_state_id': state_id, 'default_zip': zip, 'default_country_id': country_id, 'default_supplier': supplier, 'default_customer': customer, 'default_use_parent_address': True}">
<kanban>
<field name="color"/>
<field name="name"/>
</t>
</templates>
</kanban>
- <form string="Contact" version="7.0">
+ <form string="Contact">
<sheet>
<field name="image" widget='image' class="oe_avatar oe_left" options='{"preview_image": "image_medium"}'/>
<div class="oe_title">
<field name="category_id" string="Tag" filter_domain="[('category_id','ilike', self)]"/>
<field name="user_id"/>
<field name="parent_id" domain="[('is_company','=',1)]" operator="child_of"/>
- <group expand="0" string="Group By...">
+ <group expand="0" string="Group By">
<filter string="Salesperson" icon="terp-personal" domain="[]" context="{'group_by' : 'user_id'}" />
<filter string="Company" context="{'group_by': 'parent_id'}"/>
<filter string="Country" context="{'group_by': 'country_id'}"/>
<li t-if="record.parent_id.raw_value and !record.function.raw_value"><field name="parent_id"/></li>
<li t-if="!record.parent_id.raw_value and record.function.raw_value"><field name="function"/></li>
<li t-if="record.parent_id.raw_value and record.function.raw_value"><field name="function"/> at <field name="parent_id"/></li>
- <li t-if="record.city.raw_value and !record.country.raw_value"><field name="city"/></li>
- <li t-if="!record.city.raw_value and record.country.raw_value"><field name="country"/></li>
- <li t-if="record.city.raw_value and record.country.raw_value"><field name="city"/>, <field name="country"/></li>
+ <li t-if="record.city.raw_value and !record.country_id.raw_value"><field name="city"/></li>
+ <li t-if="!record.city.raw_value and record.country_id.raw_value"><field name="country_id"/></li>
+ <li t-if="record.city.raw_value and record.country_id.raw_value"><field name="city"/>, <field name="country_id"/></li>
<li t-if="record.email.raw_value"><a t-attf-href="mailto:#{record.email.raw_value}"><field name="email"/></a></li>
</ul>
</div>
<field name="name">Partner Tags</field>
<field name="model">res.partner.category</field>
<field name="arch" type="xml">
- <form string="Partner Tag" version="7.0">
+ <form string="Partner Tag">
<group col="4">
<field name="name"/>
<field name="active"/>