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 -->
|
2017-11-16 16:37:46 +01:00
|
|
|
<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-16 17:57:33 +01:00
|
|
|
<field name="coworker1" domain="[('id', '!=', coworker2)]" />
|
|
|
|
<field name="coworker2" domain="[('id', '!=', coworker1)]" />
|
2017-11-16 16:37:46 +01:00
|
|
|
<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-16 16:37:46 +01:00
|
|
|
|
2017-11-16 15:47:18 +01:00
|
|
|
</odoo>
|