62 lines
1.7 KiB
XML
62 lines
1.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<odoo>
|
|
|
|
<!-- 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">
|
|
<field name="coworker1" domain="[('id', '!=', coworker2), ('is_coworker', '=', True)]" />
|
|
<field name="coworker2" domain="[('id', '!=', coworker1), ('is_coworker', '=', True)]" />
|
|
<field name="relation" />
|
|
</group>
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<!-- 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), ('is_coworker', '=', True)]" />
|
|
<field name="coworker2" domain="[('id', '!=', coworker1), ('is_coworker', '=', True)]" />
|
|
<field name="relation" />
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
|
|
<!-- 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>
|
|
|
|
|
|
</odoo>
|