relations OK

This commit is contained in:
michel 2017-11-29 17:36:20 +01:00
parent 7c17942736
commit c2e8df0081

View File

@ -87,16 +87,60 @@
<field name="date_start">2017-12-05</field> <field name="date_start">2017-12-05</field>
<field name="date_end">2017-12-10</field> <field name="date_end">2017-12-10</field>
<field name="description">Test de demo création d'event</field> <field name="description">Test de demo création d'event</field>
<field name="participants_ids" eval="[(6, 0, [ref('name_hs'), <field name="participants_ids" eval="[(6, 0, [ref('name_hs'),
ref('name_ra'), ref('name_cb')])]" /> ref('name_ra'), ref('name_cb')])]" />
<field name="statut">confirmed</field> <field name="statut">confirmed</field>
</record> </record>
<!-- relations --> <!-- relations -->
<record id="rela_1" model="coworking.relation"> <record id="rela_1" model="coworking.relation">
<field name="coworker1" eval="[(4, ref('name_jr'), False)]" /> <field name="coworker1" ref="name_so" />
<field name="coworker2" ref="name_hs" />
<field name="relation">Soeur</field>
</record>
<record id="rela_2" model="coworking.relation">
<field name="coworker1" ref="name_hs" />
<field name="coworker2" ref="name_so" />
<field name="relation">Frére</field>
</record>
<record id="rela_3" model="coworking.relation">
<field name="coworker1" ref="name_cb" />
<field name="coworker2" ref="name_ra" />
<field name="relation">Père</field>
</record>
<record id="rela_4" model="coworking.relation">
<field name="coworker1" ref="name_ra" />
<field name="coworker2" ref="name_cb" />
<field name="relation">Mère</field>
</record>
<record id="rela_5" model="coworking.relation">
<field name="coworker1" ref="name_hs" />
<field name="coworker2" ref="name_ra" />
<field name="relation">Donuts</field>
</record>
<record id="rela_6" model="coworking.relation">
<field name="coworker1" ref="name_ra" />
<field name="coworker2" ref="name_hs" />
<field name="relation">Psy</field>
</record>
<record id="rela_7" model="coworking.relation">
<field name="coworker1" ref="name_jr" />
<field name="coworker2" ref="name_hs" /> <field name="coworker2" ref="name_hs" />
<field name="relation">Ami</field> <field name="relation">Ami</field>
</record> </record>
<record id="rela_8" model="coworking.relation">
<field name="coworker1" ref="name_so" />
<field name="coworker2" ref="name_jr" />
<field name="relation">Ami</field>
</record>
<record id="rela_9" model="coworking.relation">
<field name="coworker1" ref="name_jr" />
<field name="coworker2" ref="name_ra" />
<field name="relation">cousin</field>
</record>
<record id="rela_10" model="coworking.relation">
<field name="coworker1" ref="name_ra" />
<field name="coworker2" ref="name_jr" />
<field name="relation">Cousine</field>
</record>
</odoo> </odoo>