2017-11-24 10:05:18 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
|
|
|
<odoo>
|
|
|
|
<!-- Form -->
|
|
|
|
<record id="view_form_res_partner" model="ir.ui.view">
|
2017-11-24 18:49:25 +01:00
|
|
|
<field name="name">>res.partner.form.inherit</field>
|
2017-11-24 11:32:03 +01:00
|
|
|
<field name="model">res.partner</field>
|
2017-11-24 11:54:31 +01:00
|
|
|
<field name="inherit_id" ref ="base.view_partner_form" />
|
2017-11-24 10:05:18 +01:00
|
|
|
<field name="arch" type="xml">
|
2017-11-24 18:49:25 +01:00
|
|
|
|
2017-11-27 14:52:39 +01:00
|
|
|
<field name="is_company" position="before">
|
2017-11-27 14:24:15 +01:00
|
|
|
<field name="is_coworker" widget="radio" class="oe_edit_only" options="{'horizontal': true}"/>
|
2017-11-27 14:52:39 +01:00
|
|
|
</field>
|
2017-11-27 14:24:15 +01:00
|
|
|
|
2017-11-24 18:49:25 +01:00
|
|
|
<field name="parent_id" position="after">
|
2017-11-27 14:52:39 +01:00
|
|
|
<field name="coworker_type" attrs="{'invisible': [('is_coworker','!=', 'is_coworker')]}" />
|
|
|
|
<field name="contact_date" attrs="{'invisible': [('is_coworker','!=', 'is_coworker')]}"/>
|
2017-11-24 18:49:25 +01:00
|
|
|
</field>
|
|
|
|
|
|
|
|
<field name="email" position="after">
|
|
|
|
<field name="url" />
|
|
|
|
</field>
|
2017-11-27 16:02:09 +01:00
|
|
|
</field>
|
|
|
|
</record>
|
2017-11-24 18:49:25 +01:00
|
|
|
|
2017-11-27 16:02:09 +01:00
|
|
|
<!-- Tree -->
|
|
|
|
<record id="view_tree_res_partner" model="ir.ui.view">
|
|
|
|
<field name="name">res.partner.tree.inherit</field>
|
|
|
|
<field name="model">res.partner</field>
|
|
|
|
<field name="inherit_id" ref ="base.view_partner_tree" />
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="phone" position="before">
|
|
|
|
<field name="company_name" />
|
|
|
|
<field name="full_contact_adress" />
|
|
|
|
</field>
|
|
|
|
<field name="phone" position="replace">
|
|
|
|
<field name="mobile" />
|
|
|
|
</field>
|
2017-11-24 10:05:18 +01:00
|
|
|
</field>
|
|
|
|
</record>
|
2017-11-27 16:02:09 +01:00
|
|
|
|
2017-11-27 16:53:42 +01:00
|
|
|
<!-- Search -->
|
|
|
|
<record id="view_search_res_partner" model="ir.ui.view">
|
|
|
|
<field name="name">res.partner.search.inherit</field>
|
|
|
|
<field name="model">res.partner</field>
|
|
|
|
<field name="inherit_id" ref ="base.view_res_partner_filter" />
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<xpath expr="//search" position="inside">
|
|
|
|
<filter name="is_coworker" string="Coworker"
|
|
|
|
domain="[('is_coworker','!=',False)]" />
|
|
|
|
</xpath>
|
|
|
|
|
|
|
|
</field>
|
|
|
|
</record>
|
2017-11-27 16:02:09 +01:00
|
|
|
|
2017-11-27 17:06:40 +01:00
|
|
|
<!-- Kanban -->
|
|
|
|
<record id="view_kanban_res_partner" model="ir.ui.view">
|
|
|
|
<field name="name">res.partner.kanban.inherit</field>
|
|
|
|
<field name="model">res.partner</field>
|
|
|
|
<field name="inherit_id" ref ="base.res_partner_kanban_view" />
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<xpath expr='//kanban/templates/t/div/div[3]/ul' position="before">
|
|
|
|
<field name="full_contact_adress" />
|
|
|
|
<div t-if="!record.full_contact_adress.raw_value"
|
|
|
|
style="margin: 0px; padding:3px 3px 10px 3px; color:#F77171; background-color: #FFF3F3;">
|
|
|
|
</div>
|
|
|
|
</xpath>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2017-11-24 10:05:18 +01:00
|
|
|
</odoo>
|