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">
|
2017-11-27 17:53:39 +01:00
|
|
|
<xpath expr='//kanban/templates/t/div/div[3]/ul/li[4]' position="replace">
|
2017-11-27 17:06:40 +01:00
|
|
|
<field name="full_contact_adress" />
|
2017-11-27 17:53:39 +01:00
|
|
|
<li t-if="!record.full_contact_adress.raw_value"></li>
|
2017-11-27 17:06:40 +01:00
|
|
|
</xpath>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2017-11-28 11:01:28 +01:00
|
|
|
<!-- Calendar -->
|
2017-11-27 18:33:13 +01:00
|
|
|
<act_window id="contacts.action_contacts" name="Contacts"
|
2017-11-28 11:01:28 +01:00
|
|
|
res_model="res.partner" view_mode="calendar,graph" />
|
2017-11-27 18:33:13 +01:00
|
|
|
|
2017-11-27 18:27:31 +01:00
|
|
|
<record id="view_calendar_res_partner" model="ir.ui.view">
|
2017-11-28 11:01:28 +01:00
|
|
|
<field name="name">res.partner.calendar</field>
|
2017-11-27 18:27:31 +01:00
|
|
|
<field name="model">res.partner</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<calendar date_start="contact_date"
|
|
|
|
display="First contact : [name]" >
|
|
|
|
<field name="name" />
|
|
|
|
</calendar>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2017-11-28 11:01:28 +01:00
|
|
|
<!-- Graph -->
|
|
|
|
<record id="view_graph_res_partner" model="ir.ui.view">
|
|
|
|
<field name="name">res.partner.graph</field>
|
|
|
|
<field name="model">res.partner</field>
|
2017-11-28 11:20:06 +01:00
|
|
|
<field name="arch" type="xml">
|
2017-11-28 11:01:28 +01:00
|
|
|
<graph type="bar">
|
2017-11-28 11:20:06 +01:00
|
|
|
<field name="is_coworker" />
|
|
|
|
<field name="is_coworker" type="measure" />
|
2017-11-28 11:01:28 +01:00
|
|
|
</graph>
|
2017-11-28 11:20:06 +01:00
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="view_pivot_res_partner" model="ir.ui.view">
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<pivot>
|
|
|
|
<field name="is_coworker" type="col" />
|
|
|
|
<field name="user_id" />
|
|
|
|
<field name="date_deadline" interval="week" />
|
|
|
|
<field name="effort_estimate" type="measure" />
|
|
|
|
</pivot>
|
2017-11-28 11:01:28 +01:00
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2017-11-24 10:05:18 +01:00
|
|
|
</odoo>
|