2017-11-03 15:28:45 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
2017-11-06 22:48:27 +01:00
|
|
|
<odoo>
|
2017-11-09 10:02:21 +01:00
|
|
|
<!-- Form -->
|
2017-11-03 15:28:45 +01:00
|
|
|
<record id="view_form_coworker" model="ir.ui.view">
|
|
|
|
<field name="name">Coworker Form</field>
|
|
|
|
<field name="model">coworking.coworker</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Coworker">
|
|
|
|
<sheet>
|
|
|
|
<group name="group_top">
|
|
|
|
<group name="group_left">
|
2017-11-07 17:55:42 +01:00
|
|
|
<field name="contact_image" widget="image" class="oe_avatar"/>
|
2017-11-06 12:49:45 +01:00
|
|
|
<field name="contact_date" />
|
2017-11-06 22:48:27 +01:00
|
|
|
<field name="full_name" />
|
2017-11-03 15:28:45 +01:00
|
|
|
<field name="name" />
|
|
|
|
<field name="firstname" />
|
|
|
|
<field name="coworker_type" />
|
|
|
|
<field name="company_name" />
|
2017-11-06 22:48:27 +01:00
|
|
|
<field name="job" />
|
2017-11-03 15:28:45 +01:00
|
|
|
</group>
|
|
|
|
<group name="group_right">
|
|
|
|
<field name="street" />
|
2017-11-06 15:54:17 +01:00
|
|
|
<field name="contact_zip" />
|
2017-11-03 15:28:45 +01:00
|
|
|
<field name="city" />
|
2017-11-07 12:13:35 +01:00
|
|
|
<field name="full_contact_adress" />
|
2017-11-03 15:28:45 +01:00
|
|
|
<field name="gsm" />
|
|
|
|
<field name="phone_number" />
|
|
|
|
<field name="email" />
|
|
|
|
<field name="url" />
|
2017-11-09 10:43:41 +01:00
|
|
|
<field name="is_done" />
|
|
|
|
<field name="is_active" readonly="1" />
|
2017-11-03 15:28:45 +01:00
|
|
|
</group>
|
2017-11-09 10:45:40 +01:00
|
|
|
</group>
|
2017-11-09 10:43:41 +01:00
|
|
|
<groupe>
|
2017-11-09 10:45:40 +01:00
|
|
|
<notebook>
|
|
|
|
<page string="Note" name="note">
|
|
|
|
<field name="note" />
|
|
|
|
</page>
|
|
|
|
</notebook>
|
|
|
|
</groupe>
|
2017-11-03 15:28:45 +01:00
|
|
|
</sheet>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2017-11-06 14:35:02 +01:00
|
|
|
|
2017-11-09 10:02:21 +01:00
|
|
|
<!-- Tree -->
|
2017-11-06 12:49:45 +01:00
|
|
|
<record id="view_tree_coworker" model="ir.ui.view">
|
|
|
|
<field name="name">Coworker Tree</field>
|
|
|
|
<field name="model">coworking.coworker</field>
|
|
|
|
<field name="arch" type="xml">
|
2017-11-06 14:35:02 +01:00
|
|
|
<tree default_order="name asc, firstname asc">
|
2017-11-07 17:59:02 +01:00
|
|
|
<field name="full_name" />
|
2017-11-06 12:49:45 +01:00
|
|
|
<field name="company_name" />
|
2017-11-07 17:59:02 +01:00
|
|
|
<field name="full_contact_adress" />
|
2017-11-06 12:49:45 +01:00
|
|
|
<field name="gsm" />
|
|
|
|
<field name="email" />
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2017-11-06 14:35:02 +01:00
|
|
|
|
2017-11-09 10:02:21 +01:00
|
|
|
<!-- Search -->
|
2017-11-06 14:35:02 +01:00
|
|
|
<record id="view_search_coworker" model="ir.ui.view">
|
|
|
|
<field name="name">Coworker Search</field>
|
|
|
|
<field name="model">coworking.coworker</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search>
|
|
|
|
<field name="contact_date" />
|
2017-11-07 18:45:20 +01:00
|
|
|
<field name="full_name" />
|
2017-11-06 14:35:02 +01:00
|
|
|
<field name="company_name" />
|
|
|
|
<field name="gsm" />
|
|
|
|
<field name="email" />
|
|
|
|
|
|
|
|
<filter name="individual" string="Individual"
|
|
|
|
domain="[('company_name','=',False)]" />
|
2017-11-07 18:53:07 +01:00
|
|
|
|
2017-11-06 14:35:02 +01:00
|
|
|
<filter name="in_compagny" string="in_compagny"
|
|
|
|
domain="[('company_name','!=',False)]" />
|
|
|
|
|
|
|
|
<separator />
|
|
|
|
|
|
|
|
<filter name="is_savoyar" string="Is_savoyar"
|
2017-11-06 15:54:17 +01:00
|
|
|
domain="[('contact_zip','=like','73___')]" />
|
2017-11-06 14:35:02 +01:00
|
|
|
|
|
|
|
<filter name="meet_of_2017" string="Meet_of_2017"
|
|
|
|
domain="[('contact_date','like','2017')]" />
|
|
|
|
|
|
|
|
<filter name="group_city" string="Group city"
|
|
|
|
context="{'group_by': 'city'}" />
|
|
|
|
|
|
|
|
<filter name="group_month" string="Group month"
|
|
|
|
context="{'group_by': 'contact_date'}" />
|
|
|
|
|
|
|
|
<filter name="group_years" string="Group years"
|
|
|
|
context="{'group_by': 'contact_date:year'}" />
|
|
|
|
|
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
2017-11-09 10:19:08 +01:00
|
|
|
|
2017-11-09 10:02:21 +01:00
|
|
|
<!-- Kanban -->
|
|
|
|
<record id="view_kanban_coworker" model="ir.ui.view">
|
|
|
|
<field name="name">Coworker Kanban</field>
|
|
|
|
<field name="model">coworking.coworker</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<kanban>
|
|
|
|
<field name="contact_image" />
|
|
|
|
<field name="full_name" />
|
|
|
|
<field name="full_contact_adress" />
|
|
|
|
<templates>
|
|
|
|
<t t-name="kanban-box">
|
|
|
|
<div class="oe_kanban_vignette oe_semantic_html_override">
|
|
|
|
<div class="o_kanban_image">
|
|
|
|
<img t-if="record.contact_image.raw_value"
|
|
|
|
t-att-src="'data:image/png;base64,'+ record.contact_image.raw_value"/>
|
|
|
|
<t t-if="!record.contact_image.raw_value">
|
|
|
|
</t>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<field name="full_name" />
|
|
|
|
<field name="full_contact_adress" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</t>
|
|
|
|
</templates>
|
|
|
|
</kanban>
|
|
|
|
</field>
|
|
|
|
</record>
|
2017-11-06 14:35:02 +01:00
|
|
|
|
2017-11-09 10:19:08 +01:00
|
|
|
<!-- Calendar -->
|
|
|
|
<record id="view_calendar_coworker" model="ir.ui.view">
|
|
|
|
<field name="name">Coworker Calendar</field>
|
|
|
|
<field name="model">coworking.coworker</field>
|
|
|
|
<field name="arch" type="xml">
|
2017-11-09 10:20:10 +01:00
|
|
|
<calendar date_start="contact_date"
|
2017-11-09 11:00:59 +01:00
|
|
|
display="First contact : [name]" >
|
2017-11-09 10:19:08 +01:00
|
|
|
<field name="name" />
|
|
|
|
</calendar>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2017-11-03 15:28:45 +01:00
|
|
|
</odoo>
|