|
@ -1,6 +1,6 @@ |
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
<odoo> |
|
|
<odoo> |
|
|
<record id="view_res_partner_filter_contact" model="ir.ui.view"> |
|
|
|
|
|
|
|
|
<record id="view_res_partner_filter_contact" model="ir.ui.view"> |
|
|
<field name="name">res.partner.select.contact</field> |
|
|
<field name="name">res.partner.select.contact</field> |
|
|
<field name="model">res.partner</field> |
|
|
<field name="model">res.partner</field> |
|
|
<field name="inherit_id" ref="base.view_res_partner_filter"/> |
|
|
<field name="inherit_id" ref="base.view_res_partner_filter"/> |
|
@ -15,9 +15,9 @@ |
|
|
<filter string="Person" name="group_person" context="{'group_by': 'contact_id'}"/> |
|
|
<filter string="Person" name="group_person" context="{'group_by': 'contact_id'}"/> |
|
|
</xpath> |
|
|
</xpath> |
|
|
</field> |
|
|
</field> |
|
|
</record> |
|
|
|
|
|
|
|
|
</record> |
|
|
|
|
|
|
|
|
<record id="view_res_partner_tree_contact" model="ir.ui.view"> |
|
|
|
|
|
|
|
|
<record id="view_res_partner_tree_contact" model="ir.ui.view"> |
|
|
<field name="name">res.partner.tree.contact</field> |
|
|
<field name="name">res.partner.tree.contact</field> |
|
|
<field name="model">res.partner</field> |
|
|
<field name="model">res.partner</field> |
|
|
<field name="inherit_id" ref="base.view_partner_tree"/> |
|
|
<field name="inherit_id" ref="base.view_partner_tree"/> |
|
@ -26,9 +26,9 @@ |
|
|
<field name="contact_id" invisible="1"/> |
|
|
<field name="contact_id" invisible="1"/> |
|
|
</field> |
|
|
</field> |
|
|
</field> |
|
|
</field> |
|
|
</record> |
|
|
|
|
|
|
|
|
</record> |
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_partner_form_inherit"> |
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_partner_form_inherit"> |
|
|
<field name="name">res.partner.form.contact</field> |
|
|
<field name="name">res.partner.form.contact</field> |
|
|
<field name="model">res.partner</field> |
|
|
<field name="model">res.partner</field> |
|
|
<field name="inherit_id" ref="base.view_partner_form"/> |
|
|
<field name="inherit_id" ref="base.view_partner_form"/> |
|
@ -49,8 +49,11 @@ |
|
|
<field name="contact_type" invisible="1"/> |
|
|
<field name="contact_type" invisible="1"/> |
|
|
</field> |
|
|
</field> |
|
|
<page name='internal_notes' position="before"> |
|
|
<page name='internal_notes' position="before"> |
|
|
<page name="other_position" string="Other Positions" attrs="{'invisible': ['|',('is_company','=',True),('contact_id','!=',False)]}"> |
|
|
|
|
|
<field name="other_contact_ids" context="{'default_contact_id': active_id, 'default_name': name, '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}" mode="kanban"> |
|
|
|
|
|
|
|
|
<page name="other_position" string="Other Positions" |
|
|
|
|
|
attrs="{'invisible': ['|',('is_company','=',True),('contact_id','!=',False)]}"> |
|
|
|
|
|
<field name="other_contact_ids" |
|
|
|
|
|
context="{'default_contact_id': active_id, 'default_name': name, 'default_street': street, 'default_street2': street2, 'default_city': city, 'default_state_id': state_id, 'default_zip': zip, 'default_country_id': country_id}" |
|
|
|
|
|
mode="kanban"> |
|
|
<kanban create="false"> |
|
|
<kanban create="false"> |
|
|
<field name="color"/> |
|
|
<field name="color"/> |
|
|
<field name="name"/> |
|
|
<field name="name"/> |
|
@ -67,7 +70,7 @@ |
|
|
<field name="country_id"/> |
|
|
<field name="country_id"/> |
|
|
<field name="mobile"/> |
|
|
<field name="mobile"/> |
|
|
<field name="state_id"/> |
|
|
<field name="state_id"/> |
|
|
<field name="image"/> |
|
|
|
|
|
|
|
|
<field name="image_128"/> |
|
|
<field name="lang"/> |
|
|
<field name="lang"/> |
|
|
<templates> |
|
|
<templates> |
|
|
<t t-name="kanban-box"> |
|
|
<t t-name="kanban-box"> |
|
@ -75,18 +78,28 @@ |
|
|
<div t-att-class="color + (record.title.raw_value == 1 ? ' oe_kanban_color_alert' : '') + ' oe_kanban_global_click'"> |
|
|
<div t-att-class="color + (record.title.raw_value == 1 ? ' oe_kanban_color_alert' : '') + ' oe_kanban_global_click'"> |
|
|
<a t-if="!read_only_mode" type="delete" class="fa fa-times pull-right"/> |
|
|
<a t-if="!read_only_mode" type="delete" class="fa fa-times pull-right"/> |
|
|
<div class="o_kanban_image"> |
|
|
<div class="o_kanban_image"> |
|
|
<img t-if="record.image.raw_value" t-att-src="'data:image/png;base64,'+record.image.raw_value"/> |
|
|
|
|
|
<t t-if="!record.image.raw_value"> |
|
|
|
|
|
<img t-if="record.is_company.raw_value === true" t-att-src='_s + "/base/static/src/img/company_image.png"'/> |
|
|
|
|
|
<img t-if="record.is_company.raw_value === false" t-att-src='_s + "/base/static/src/img/avatar.png"'/> |
|
|
|
|
|
|
|
|
<img t-if="record.image_128.raw_value" t-att-src="'data:image/png;base64,' + record.image_128.raw_value"/> |
|
|
|
|
|
<t t-if="!record.image_128.raw_value"> |
|
|
|
|
|
<img alt="Logo" t-if="record.is_company.raw_value === true" t-att-src='_s + "/base/static/src/img/company_image.png"'/> |
|
|
|
|
|
<img alt="Avatar" t-if="record.is_company.raw_value === false" t-att-src='_s + "/base/static/src/img/avatar_grey.png"'/> |
|
|
</t> |
|
|
</t> |
|
|
</div> |
|
|
</div> |
|
|
<div class="oe_kanban_details"> |
|
|
<div class="oe_kanban_details"> |
|
|
<field name="name"/> |
|
|
<field name="name"/> |
|
|
<div t-if="record.function.raw_value"><field name="function"/> at <field name="parent_id"/></div> |
|
|
|
|
|
<div t-if="record.email.raw_value"><field name="email"/></div> |
|
|
|
|
|
<div t-if="record.phone.raw_value">Phone: <field name="phone"/></div> |
|
|
|
|
|
<div t-if="record.mobile.raw_value">Mobile: <field name="mobile"/></div> |
|
|
|
|
|
|
|
|
<div t-if="record.function.raw_value"> |
|
|
|
|
|
<field name="function"/> |
|
|
|
|
|
at |
|
|
|
|
|
<field name="parent_id"/> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div t-if="record.email.raw_value"> |
|
|
|
|
|
<field name="email"/> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div t-if="record.phone.raw_value">Phone: |
|
|
|
|
|
<field name="phone"/> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div t-if="record.mobile.raw_value">Mobile: |
|
|
|
|
|
<field name="mobile"/> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</t> |
|
|
</t> |
|
@ -102,16 +115,21 @@ |
|
|
<div> |
|
|
<div> |
|
|
<div class="o_address_format" name="div_address"> |
|
|
<div class="o_address_format" name="div_address"> |
|
|
<field name="street" placeholder="Street..." class="o_address_street"/> |
|
|
<field name="street" placeholder="Street..." class="o_address_street"/> |
|
|
<field name="street2" placeholder="Street 2..." class="o_address_street"/> |
|
|
|
|
|
|
|
|
<field name="street2" placeholder="Street 2..." |
|
|
|
|
|
class="o_address_street"/> |
|
|
<field name="city" placeholder="City" class="o_address_city"/> |
|
|
<field name="city" placeholder="City" class="o_address_city"/> |
|
|
<field name="state_id" class="o_address_state" placeholder="State" options='{"no_open": True}' context="{'country_id': country_id, 'zip': zip}"/> |
|
|
|
|
|
|
|
|
<field name="state_id" class="o_address_state" placeholder="State" |
|
|
|
|
|
options='{"no_open": True}' |
|
|
|
|
|
context="{'country_id': country_id, 'zip': zip}"/> |
|
|
<field name="zip" placeholder="ZIP" class="o_address_zip"/> |
|
|
<field name="zip" placeholder="ZIP" class="o_address_zip"/> |
|
|
<field name="country_id" placeholder="Country" class="o_address_country" options='{"no_open": True, "no_create": True}'/> |
|
|
|
|
|
|
|
|
<field name="country_id" placeholder="Country" class="o_address_country" |
|
|
|
|
|
options='{"no_open": True, "no_create": True}'/> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</group> |
|
|
</group> |
|
|
<group> |
|
|
<group> |
|
|
<field name="name" string="Contact Name" attrs="{'required' : [('type', '=', 'contact')]}"/> |
|
|
|
|
|
|
|
|
<field name="name" string="Contact Name" |
|
|
|
|
|
attrs="{'required' : [('type', '=', 'contact')]}"/> |
|
|
<field name="title" placeholder="e.g. Mr." |
|
|
<field name="title" placeholder="e.g. Mr." |
|
|
attrs="{'invisible': [('type','<>', 'contact')]}"/> |
|
|
attrs="{'invisible': [('type','<>', 'contact')]}"/> |
|
|
<field name="function" placeholder="e.g. Sales Director" |
|
|
<field name="function" placeholder="e.g. Sales Director" |
|
@ -122,8 +140,6 @@ |
|
|
<field name="comment" placeholder="internal note..."/> |
|
|
<field name="comment" placeholder="internal note..."/> |
|
|
</group> |
|
|
</group> |
|
|
</group> |
|
|
</group> |
|
|
<field name="supplier" invisible="True"/> |
|
|
|
|
|
<field name="customer" invisible="True"/> |
|
|
|
|
|
<field name="lang" invisible="True"/> |
|
|
<field name="lang" invisible="True"/> |
|
|
</sheet> |
|
|
</sheet> |
|
|
</form> |
|
|
</form> |
|
@ -131,9 +147,9 @@ |
|
|
</page> |
|
|
</page> |
|
|
</page> |
|
|
</page> |
|
|
</field> |
|
|
</field> |
|
|
</record> |
|
|
|
|
|
|
|
|
</record> |
|
|
|
|
|
|
|
|
<record id="personal_contact_information" model="ir.ui.view"> |
|
|
|
|
|
|
|
|
<record id="personal_contact_information" model="ir.ui.view"> |
|
|
<field name="name">Contacts in several partners: personal info</field> |
|
|
<field name="name">Contacts in several partners: personal info</field> |
|
|
<field name="model">res.partner</field> |
|
|
<field name="model">res.partner</field> |
|
|
<field name="inherit_id" ref="partner_contact_personal_information_page.personal_information"/> |
|
|
<field name="inherit_id" ref="partner_contact_personal_information_page.personal_information"/> |
|
@ -154,9 +170,9 @@ |
|
|
</p> |
|
|
</p> |
|
|
</xpath> |
|
|
</xpath> |
|
|
</field> |
|
|
</field> |
|
|
</record> |
|
|
|
|
|
|
|
|
</record> |
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_res_partner_kanban_contact"> |
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_res_partner_kanban_contact"> |
|
|
<field name="name">res.partner.kanban.contact</field> |
|
|
<field name="name">res.partner.kanban.contact</field> |
|
|
<field name="model">res.partner</field> |
|
|
<field name="model">res.partner</field> |
|
|
<field name="inherit_id" ref="base.res_partner_kanban_view"/> |
|
|
<field name="inherit_id" ref="base.res_partner_kanban_view"/> |
|
@ -171,11 +187,13 @@ |
|
|
</field> |
|
|
</field> |
|
|
<xpath expr="//t[@t-name='kanban-box']//div[hasclass('oe_kanban_details')]/ul/li[3]" position="after"> |
|
|
<xpath expr="//t[@t-name='kanban-box']//div[hasclass('oe_kanban_details')]/ul/li[3]" position="after"> |
|
|
<t t-if="record.other_contact_ids.raw_value.length > 0"> |
|
|
<t t-if="record.other_contact_ids.raw_value.length > 0"> |
|
|
<li>+<t t-esc="record.other_contact_ids.raw_value.length"/> |
|
|
|
|
|
|
|
|
<li>+ |
|
|
|
|
|
<t t-esc="record.other_contact_ids.raw_value.length"/> |
|
|
<t t-if="record.other_contact_ids.raw_value.length == 1">other position</t> |
|
|
<t t-if="record.other_contact_ids.raw_value.length == 1">other position</t> |
|
|
<t t-if="record.other_contact_ids.raw_value.length > 1">other positions</t></li> |
|
|
|
|
|
|
|
|
<t t-if="record.other_contact_ids.raw_value.length > 1">other positions</t> |
|
|
|
|
|
</li> |
|
|
</t> |
|
|
</t> |
|
|
</xpath> |
|
|
</xpath> |
|
|
</field> |
|
|
</field> |
|
|
</record> |
|
|
|
|
|
|
|
|
</record> |
|
|
</odoo> |
|
|
</odoo> |