83 lines
2.5 KiB
XML
83 lines
2.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<odoo>
|
|
<!-- Form -->
|
|
<record id="view_form_event" model="ir.ui.view">
|
|
<field name="name">Event Form</field>
|
|
<field name="model">coworking.event</field>
|
|
<field name="arch" type="xml">
|
|
<form string="event">
|
|
<header>
|
|
<field name="statut" widget="statusbar" clickable="1" />
|
|
</header>
|
|
<sheet>
|
|
<group name="group_top">
|
|
<group name="group_left">
|
|
<field name="title" />
|
|
<field name="manager_id" />
|
|
<field name="date_start" />
|
|
<field name="date_end" />
|
|
<field name="duration" />
|
|
<field name="description" />
|
|
<field name="participants_ids" widget="many2many_tags"
|
|
options="{'no_create': true}" />
|
|
</group>
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- Tree -->
|
|
<record id="view_tree_coworker" model="ir.ui.view">
|
|
<field name="name">event Tree</field>
|
|
<field name="model">coworking.event</field>
|
|
<field name="arch" type="xml">
|
|
<tree default_order="date_start asc, title asc">
|
|
<field name="title" />
|
|
<field name="manager_id" />
|
|
<field name="date_start" />
|
|
<field name="participants_count" />
|
|
<field name="statut" />
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- Search -->
|
|
<record id="view_search_event" model="ir.ui.view">
|
|
<field name="name">Event Search</field>
|
|
<field name="model">coworking.event</field>
|
|
<field name="arch" type="xml">
|
|
<search>
|
|
<field name="title" />
|
|
<field name="manager" />
|
|
|
|
<filter name="Satut" string="confirmed"
|
|
domain="[('statut','!=',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>
|