98 lines
3.1 KiB
XML
98 lines
3.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<odoo>
|
|
|
|
<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">
|
|
<field name="contact_image" widget="image" class="oe_avatar"/>
|
|
<field name="contact_date" />
|
|
<field name="full_name" />
|
|
<field name="name" />
|
|
<field name="firstname" />
|
|
<field name="coworker_type" />
|
|
<field name="company_name" />
|
|
<field name="job" />
|
|
<!-- attrs="{'invisible': [('company_name', '=', False)], 'required': [('company_name', '!=', False)]}" -->
|
|
</group>
|
|
<group name="group_right">
|
|
<field name="street" />
|
|
<field name="contact_zip" />
|
|
<field name="city" />
|
|
<field name="full_contact_adress" />
|
|
<field name="gsm" />
|
|
<field name="phone_number" />
|
|
<field name="email" />
|
|
<field name="url" />
|
|
</group>
|
|
<field name="note" />
|
|
<field name="is_done" />
|
|
<field name="is_active" readonly="1" />
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
|
|
<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">
|
|
<tree default_order="name asc, firstname asc">
|
|
<field name="name" />
|
|
<field name="firstname" />
|
|
<field name="company_name" />
|
|
<field name="gsm" />
|
|
<field name="email" />
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
|
|
<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" />
|
|
<field name="name" />
|
|
<field name="firstname" />
|
|
<field name="company_name" />
|
|
<field name="gsm" />
|
|
<field name="email" />
|
|
|
|
<filter name="individual" string="Individual"
|
|
domain="[('company_name','=',False)]" />
|
|
<filter name="in_compagny" string="in_compagny"
|
|
domain="[('company_name','!=',False)]" />
|
|
|
|
<separator />
|
|
|
|
<filter name="is_savoyar" string="Is_savoyar"
|
|
domain="[('contact_zip','=like','73___')]" />
|
|
|
|
<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>
|
|
|
|
|
|
</odoo>
|