Essai d'ajout de plusieur participants

This commit is contained in:
michel 2017-11-29 16:50:09 +01:00
parent 8287e674aa
commit 49526c558b

View File

@ -1,6 +1,7 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<odoo> <odoo>
<!-- Coworker -->
<record id="name_hs" model="res.partner"> <record id="name_hs" model="res.partner">
<field name="name">Homer Simpson</field> <field name="name">Homer Simpson</field>
<field name="contact_date">2017-11-27</field> <field name="contact_date">2017-11-27</field>
@ -51,6 +52,7 @@
<field name="city">Grosland</field> <field name="city">Grosland</field>
<field name="country_id" ref="base.fr" /> <field name="country_id" ref="base.fr" />
</record> </record>
<!-- Events -->
<record id="event_1" model="coworking.event"> <record id="event_1" model="coworking.event">
<field name="title">Evenement</field> <field name="title">Evenement</field>
@ -61,4 +63,34 @@
<field name="participants_ids" eval="[(4, ref('name_jr'), False)]"/> <field name="participants_ids" eval="[(4, ref('name_jr'), False)]"/>
<field name="statut">confirmed</field> <field name="statut">confirmed</field>
</record> </record>
<record id="event_2" model="coworking.event">
<field name="title">Formation</field>
<field name="manager_id" ref="name_cb" />
<field name="date_start">2017-11-29</field>
<field name="date_end">2017-11-30</field>
<field name="description">Test de demo création d'event</field>
<field name="participants_ids" eval="[(4, ref('name_hs'), False)]"/>
<field name="statut">confirmed</field>
</record>
<record id="event_3" model="coworking.event">
<field name="title">Cuisine</field>
<field name="manager_id" ref="name_so" />
<field name="date_start">2017-11-29</field>
<field name="date_end">2017-11-30</field>
<field name="description">Test de demo création d'event</field>
<field name="participants_ids" eval="[(4, ref('name_ra'), False)]"/>
<field name="statut">confirmed</field>
</record>
<record id="event_4" model="coworking.event">
<field name="title">Méditation</field>
<field name="manager_id" ref="name_so" />
<field name="date_start">2017-12-05</field>
<field name="date_end">2017-12-10</field>
<field name="description">Test de demo création d'event</field>
<field name="participants_ids" eval="[(4, [ref('name_ra'), False][ref('author_hs'), False])]"/>
<field name="statut">confirmed</field>
</record>
</odoo> </odoo>
<!--
<field name="author_ids" eval="[(6, 0, [ref('author_af'),
ref('author_dr'), ref('author_hb')])]" /> -->