<?xml version="1.0"?>
<openerp>
    <data noupdate="1">

        <record id="base.user_demo" model="res.users">
            <field name="groups_id" eval="[(4,ref('lunch.group_lunch_user'))]"/> 
        </record>

        <record model="lunch.product.category" id="categ_sandwich">
            <field name="name">Sandwich</field>
        </record>
        <record model="lunch.product.category" id="categ_pizza">
            <field name="name">Pizza</field>
        </record>
        <record model="lunch.product.category" id="categ_pasta">
            <field name="name">Pasta</field>
        </record>

        <record model="res.partner" id="partner_coin_gourmand">
            <field name="name">Coin gourmand</field>
        </record>

        <record model="res.partner" id="partner_pizza_inn">
            <field name="name">Pizza Inn</field>
        </record>

        <record model="lunch.product" id="product_cheese_ham">
            <field name="name">Cheese And Ham</field>
            <field name="category_id" eval="str(ref('categ_sandwich'))"/>
            <field name="price">3.30</field>
            <field name="supplier" eval="str(ref('partner_coin_gourmand'))"/>
            <field name="description">Cheese, Ham, Salad, Tomatoes, cucumbers, eggs</field>
        </record>

        <record model="lunch.product" id="product_country">
            <field name="name">The Country</field>
            <field name="category_id" eval="str(ref('categ_sandwich'))"/>
            <field name="price">3.30</field>
            <field name="supplier" eval="str(ref('partner_coin_gourmand'))"/>
            <field name="description">Brie, Honey, Walnut Kernels</field>
        </record>

        <record model="lunch.product" id="product_tuna">
            <field name="name">Tuna</field>
            <field name="category_id" eval="str(ref('categ_sandwich'))"/>
            <field name="price">2.50</field>
            <field name="supplier" eval="str(ref('partner_coin_gourmand'))"/>
            <field name="description">Tuna, Mayonnaise</field>
        </record>

        <record model="lunch.product" id="product_gouda">
            <field name="name">Gouda Cheese</field>
            <field name="category_id" eval="str(ref('categ_sandwich'))"/>
            <field name="price">2.50</field>
            <field name="supplier" eval="str(ref('partner_coin_gourmand'))"/>
            <field name="description"></field>
        </record>

        <record model="lunch.product" id="product_chicken_curry">
            <field name="name">Chicken Curry</field>
            <field name="category_id" eval="str(ref('categ_sandwich'))"/>
            <field name="price">2.60</field>
            <field name="supplier" eval="str(ref('partner_coin_gourmand'))"/>
            <field name="description"></field>
        </record>

        <record model="lunch.product" id="product_margherita">
            <field name="name">Pizza Margherita</field>
            <field name="category_id" eval="str(ref('categ_pizza'))"/>
            <field name="price">6.90</field>
            <field name="supplier" eval="str(ref('partner_pizza_inn'))"/>
            <field name="description">Tomatoes, Mozzarella</field>
        </record>

        <record model="lunch.product" id="product_italiana">
            <field name="name">Pizza Italiana</field>
            <field name="category_id" eval="str(ref('categ_pizza'))"/>
            <field name="price">7.40</field>
            <field name="supplier" eval="str(ref('partner_pizza_inn'))"/>
            <field name="description">Fresh Tomatoes, Basil, Mozzarella</field>
        </record>

        <record model="lunch.product" id="product_Bolognese">
            <field name="name">Bolognese Pasta</field>
            <field name="category_id" eval="str(ref('categ_pasta'))"/>
            <field name="price">7.70</field>
            <field name="supplier" eval="str(ref('partner_pizza_inn'))"/>
            <field name="description"></field>
        </record>

         <record model="lunch.product" id="product_Napoli">
            <field name="name">Napoli Pasta</field>
            <field name="category_id" eval="str(ref('categ_pasta'))"/>
            <field name="price">7.70</field>
            <field name="supplier" eval="str(ref('partner_pizza_inn'))"/>
            <field name="description">Tomatoes, Basil</field>
        </record>

        <record model="lunch.order" id="order_1">
            <field name="user_id" ref="base.user_demo"/>
            <field name="date" eval="time.strftime('2012-10-23')"/>
            <field name="order_line_ids" eval="[]"/>
            <field name="state">new</field>
        </record>

        <record model="lunch.order" id="order_2">
            <field name="user_id" ref="base.user_demo"/>
            <field name="date" eval="time.strftime('2012-10-22')"/>
            <field name="order_line_ids" eval="[]"/>
            <field name="state">confirmed</field>
        </record>

        <record model="lunch.order" id="order_3">
            <field name="user_id" ref="base.user_demo"/>
            <field name="date" eval="time.strftime('2012-10-24')"/>
            <field name="order_line_ids" eval="[]"/>
            <field name="state">partially</field>
        </record>

        <record model="lunch.order.line" id="order_line_1">
            <field name="user_id" ref="base.user_demo"/>
            <field name="product_id" ref="product_Bolognese"/>
            <field name="date" eval="time.strftime('2012-10-23')"/>
            <field name="state">new</field>
            <field name="supplier" ref="partner_pizza_inn"/>
            <field name="note">+Emmental</field>
            <field name="order_id" ref="order_1"/>
        </record>

        <record model="lunch.order.line" id="order_line_2">
            <field name="user_id" ref="base.user_demo"/>
            <field name="product_id" ref="product_italiana"/>
            <field name="date" eval="time.strftime('2012-10-22')"/>
            <field name="state">confirmed</field>
            <field name="supplier" ref="partner_pizza_inn"/>
            <field name="note">+Mushrooms</field>
            <field name="order_id" ref="order_2"/>
        </record>

        <record model="lunch.order.line" id="order_line_3">
            <field name="user_id" ref="base.user_demo"/>
            <field name="product_id" ref="product_gouda"/>
            <field name="date" eval="time.strftime('2012-10-24')"/>
            <field name="state">cancelled</field>
            <field name="supplier" ref="partner_coin_gourmand"/>
            <field name="note">+Salad +Tomatoes +Cucumbers</field>
            <field name="order_id" ref="order_3"/>
        </record>

        <record model="lunch.order.line" id="order_line_4">
            <field name="user_id" ref="base.user_demo"/>
            <field name="product_id" ref="product_chicken_curry"/>
            <field name="date" eval="time.strftime('2012-10-24')"/>
            <field name="state">confirmed</field>
            <field name="supplier" ref="partner_coin_gourmand"/>
            <field name="note">+Salad +Tomatoes +Eggs</field>
            <field name="order_id" ref="order_3"/>
        </record>
    
        <record model="lunch.cashmove" id="cashmove_1">
            <field name="user_id" ref="base.user_demo"/>
            <field name="date" eval="time.strftime('2012-10-23')"/>
            <field name="description">Pizza Italiana</field>
            <field name="amount">-7.40</field>
            <field name="order_id" ref="order_2"/>
            <field name="state">order</field>
        </record>

        <record model="lunch.cashmove" id="cashmove_2">
            <field name="user_id" ref="base.user_demo"/>
            <field name="date" eval="time.strftime('2012-10-24')"/>
            <field name="description">Chicken curry</field>
            <field name="amount">-2.60</field>
            <field name="order_id" ref="order_3"/>
            <field name="state">order</field>
        </record>

        <record model="lunch.cashmove" id="cashmove_3">
            <field name="user_id" ref="base.user_demo"/>
            <field name="date" eval="time.strftime('2012-10-24')"/>
            <field name="description">Payment: 5 lunch tickets (6€)</field>
            <field name="amount">30</field>
            <field name="state">payment</field>
        </record>

        <record model="lunch.alert" id="alert_1">
            <field name="message">Lunch must be ordered before 10h30 am</field>
        </record>

    </data>
</openerp>
