michel_coworking/coworking_relation/views/relation_views.xml

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