<?xml version="1.0"?>
<odoo>
    <data>
    <record id="base.user_demo" model="res.users">
             <field name="groups_id" eval="[(4, ref('event.group_event_user'))]"/>
     </record>

    <!-- Demo Data for Event Type -->
    <record id="event_type_0" model="event.type">
        <field name="name">Seminar</field>
    </record>

    <record id="event_type_1" model="event.type">
        <field name="name">Exhibition</field>
    </record>

    <record id="event_type_2" model="event.type">
        <field name="name">Conference</field>
    </record>

    <record id="event_type_3" model="event.type">
        <field name="name">Show</field>
    </record>

    <record id="event_type_4" model="event.type">
        <field name="name">Training</field>
    </record>

    <!-- event.event -->
    <record id="event_0" model="event.event">
        <field name="name">Design Fair Los Angeles</field>
        <field name="user_id" ref="base.user_admin"/>
        <field eval="(DateTime.now() + timedelta(days=1)).strftime('%Y-%m-%d 8:00:00')" name="date_begin"/>
        <field eval="(DateTime.now() + timedelta(days=5)).strftime('%Y-%m-%d 18:00:00')" name="date_end"/>
        <field name="seats_availability">limited</field>
        <field name="seats_max">500</field>
        <field name="address_id" ref="base.res_partner_1"/>
        <field name="event_type_id" ref="event_type_1"/>
        <field name="description"><![CDATA[
<div class="oe_structure">
    <center><strong>Join us to our main event of the year: the Design Fair</strong></center>
    <p>&nbsp;</p>
    <p>Every year we invite our community, partners and end-users to come and meet us! It's the ideal event to get together and present new features, roadmap of future versions, achievements of the software, workshops, training sessions, etc.... This event is also an opportunity to showcase our partners' case studies, methodology or developments. Be there and see directly from the source the features of the version 8!
    </p>
    <p>This event and all the conferences are in english!</p>
    <p>&nbsp;</p>
    <p><strong>What's new for this year?</strong></p>
    <ul>
    <li>The Design Fair is preceded by 2 days of optional training sessions for experts! We propose 3 different training sessions, 2 days each.</li>
    <li>The whole event is open to all public! We ask a participation fee of 49.50€ for the costs for the 3 days (morning coffee, coffee breaks, drinks, sandwiches for lunch and the surprising beer party of Wednesday evening) but it's optional. For those who do not want to contribute, there is a free ticket, therefore, catering is not inclued.</li>
    <li>The plenary sessions in the morning will be shorter and we will give more time for thematical meetings, conferences, workshops and tutorial sessions in the afternoon.</li>
    </ul>
    <p>&nbsp;</p>
    <p><strong>Program:</strong></p>
    <p>Conferences, workshops and trainings will be organized in 6 rooms:</p>
    <ul>
    <li>2 technical rooms: one dedicated to advanced Odoo developers, one for new developers.</li>
    <li>2 technical rooms: one dedicated to advanced Odoo developers, one for new developers.</li>
    <li>1 business room: to discuss implementation methodologies, best sales practices, etc.</li>
    <li>1 workshop room: mainly for developers.</li>
    </ul>
    <p><em>If you wish to make a presentation, please send your topic proposal as soon as possible for approval to Mr. Famke Jenssens at ngh (a) yourcompany (dot) com. The presentations should be, for example, a presentation of a community module, a case study, methodology feedback, technical, etc. Each presentation must be in English.</em></p>
    <p>&nbsp;</p>
    <p><strong>Where to find us:</strong></p>
    <p>OpenElec Applications 23 Rockwell Lane, Los Angeles, CA 90001, United States</p>
    <p>For any additional information, please contact us at <a href="mailto:events@yourcompany.com">events@yourcompany.com</a>.</p>
    <p>&nbsp;</p>
    <p>Best regards,</p>
    <p>Luigi Roni, Senior Event Manager</p>
    <p>&nbsp;</p>
    <p align="RIGHT"><em>(OpenElec Applications reserves the right to cancel, re-name or re-locate<br/>the event or change the dates on which it is held.)</em></p>
</div>
]]></field>
    </record>

    <record id="event_2" model="event.event">
        <field name="name">Conference for Architects</field>
        <field name="user_id" ref="base.user_admin"/>
        <field eval="(DateTime.today()+ timedelta(days=5)).strftime('%Y-%m-%d 7:00:00')" name="date_begin"/>
        <field eval="(DateTime.today()+ timedelta(days=5)).strftime('%Y-%m-%d 16:30:00')" name="date_end"/>
        <field name="event_type_id" ref="event_type_2"/>
        <field name="address_id" ref="base.res_partner_4"/>
        <field name="seats_availability">limited</field>
        <field name="seats_max">200</field>
        <field name="description"><![CDATA[
<div class="oe_structure">
    <center><strong>Conference for Architects</strong></center>
    <p>&nbsp;</p>
    <p> During this conference, our team will give a detailed overview of our business applications. You’ll know all the benefits of using it.</p>
    <p>&nbsp;</p>
    <p><strong>Objectives:</strong></p>
    <p>Having attended this conference, participants should be able to:</p>
    <ul>
    <li>Understand the various modules;</li>
    <li>Functional flow of the main applications;</li>
    </ul>
    <p>&nbsp;</p>
    <p><strong>Program:</strong></p>
    <ul>
    <li>Introduction, CRM, Sales Management</li>
    <li>Purchase, Sales & Purchase management, Financial accounting.</li>
    <li>Project management, Human resources, Contract management.</li>
    <li>Warehouse management, Manufacturing (MRP) & Sales, Import/Export.</li>
    <li>Point of Sale (POS), Introduction to report customization.</li>
    </ul>
    <p>&nbsp;</p>
    <p><strong>Where to find us:</strong></p>
    <p>Chamber Works 60, Rosewood Court Detroit, MI 48212 (United States)</p>
    <p>For any additional information, please contact us at <a href="mailto:events@odoo.com">events@odoo.com</a>.</p>
    <p>&nbsp;</p>
    <p>Best regards,</p>
    <p>Luigi Roni, Senior Event Manager</p>
    <p>&nbsp;</p>
    <p align="RIGHT"><em>(Chamber Works reserves the right to cancel, re-name or re-locate<br/>the event or change the dates on which it is held.)</em></p>
</div>
]]></field>
    </record>

    <function model="event.event" name="button_confirm" eval="[ref('event_0')]"/>
    <function model="event.event" name="button_confirm" eval="[ref('event_2')]"/>

    <record id="reg_2_0" model="event.registration">
        <field name="name">Camptocamp</field>
        <field name="email">odoo@camptocamp.com</field>
        <field name="phone">+41 21 619 10 04 </field>
        <field name="event_id" ref="event_2"/>
        <field name="partner_id" ref="base.res_partner_12"/>
    </record>

    </data>
</odoo>
