Coworking/coworking_coworker/views/res_partner_views.xml

120 lines
4.1 KiB
XML
Raw Normal View History

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">
<field name="type" position="after">
<field name="is_coworker" />
<field name="coworker_type"
attrs="{'invisible': [('is_coworker','=', False)]}" />
<field name="contact_date" />
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">
2017-11-28 15:02:39 +01:00
<field name="mobile" />
2017-11-27 16:02:09 +01:00
</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">
<search position="inside">
2017-11-28 17:15:18 +01:00
<filter name="group_coworker_type" string="Group coworker type"
context="{'group_by': 'coworker_type'}" />
<filter name="group_title" string="by title"
context="{'group_by': 'title'}" />
<filter name="group_city" string="City"
context="{'group_by': 'city'}" />
2017-11-27 16:53:42 +01:00
<filter name="is_coworker" string="Coworker"
domain="[('is_coworker','=',True)]" />
<filter name="group_month" string="Month"
context="{'group_by': 'contact_date:month'}" />
<filter name="group_year" string="Year"
context="{'group_by': 'contact_date:year'}" />
</search>
2017-11-27 16:53:42 +01:00
</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">
<field name="city" position="after">
2017-11-27 17:06:40 +01:00
<field name="full_contact_adress" />
</field>
<xpath expr="//div[@class='oe_kanban_details']/ul/li[4]" position="replace">
<li><field name="full_contact_adress" /></li>
</xpath>
<xpath expr="//div[@class='oe_kanban_details']/ul/li[5]" position="attributes">
<attribute name="style">display: none;</attribute>
</xpath>
<xpath expr="//div[@class='oe_kanban_details']/ul/li[6]" position="attributes">
<attribute name="style">display: none;</attribute>
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"
res_model="res.partner" view_mode="kanban,form,calendar,graph,pivot" />
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" mode="month"
2017-11-27 18:27:31 +01:00
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" />
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">
2017-11-28 17:15:18 +01:00
<field name="name">pivot</field>
<field name="model">res.partner</field>
2017-11-28 11:20:06 +01:00
<field name="arch" type="xml">
2017-11-28 17:15:18 +01:00
<pivot string="titre pivot">
<field name="title" type="col" />
<field name="contact_date" interval="week" />
2017-11-28 11:20:06 +01:00
</pivot>
2017-11-28 11:01:28 +01:00
</field>
</record>
2017-11-24 10:05:18 +01:00
</odoo>