Coworking/coworking_relation/views/relation_views.xml

62 lines
1.7 KiB
XML
Raw Normal View History

2017-11-16 15:47:18 +01:00
<?xml version="1.0" encoding="utf-8"?>
<odoo>
2017-11-16 17:57:33 +01:00
2017-11-16 15:47:18 +01:00
<!-- Form -->
<record id="view_form_relation" model="ir.ui.view">
<field name="name">Relation Form</field>
<field name="model">coworking.relation</field>
<field name="arch" type="xml">
<form string="event">
<sheet>
<group name="group_top">
<group name="group_left">
2017-11-28 17:15:18 +01:00
<field name="coworker1" domain="['&amp;', ('id', '!=', coworker2), ('is_coworker', '=', True)]" />
<field name="coworker2" domain="['&amp;', ('id', '!=', coworker1), ('is_coworker', '=', True)]" />
<field name="relation" />
</group>
</group>
</sheet>
</form>
</field>
</record>
2017-11-16 17:57:33 +01:00
<!-- Tree -->
<record id="view_tree_relation" model="ir.ui.view">
<field name="name">relation Tree</field>
<field name="model">coworking.relation</field>
<field name="arch" type="xml">
<tree editable="True">
<field name="coworker1" domain="[('id', '!=', coworker2)]" />
<field name="coworker2" domain="[('id', '!=', coworker1)]" />
<field name="relation" />
</tree>
</field>
</record>
2017-11-20 11:12:41 +01:00
<!-- Search -->
<record id="view_search_relation" model="ir.ui.view">
<field name="name">relation Search</field>
<field name="model">coworking.relation</field>
<field name="arch" type="xml">
<search>
<field name="coworker1" />
<field name="coworker2" />
<field name="relation" />
<separator />
<filter name="group_relation" string="Group relation"
context="{'group_by': 'relation'}" />
<filter name="group_coworker1" string="Group coworker1"
context="{'group_by': 'coworker1'}" />
</search>
</field>
</record>
2017-11-16 15:47:18 +01:00
</odoo>