[FIX] Fixed in advance search when search on 'None of the following condition must...
[odoo/odoo.git] / addons / event / event_demo.xml
1 <?xml version="1.0"?>
2 <openerp>
3         <data>
4     <record id="base.user_demo" model="res.users">
5              <field name="groups_id" eval="[(4, ref('marketing.group_marketing_user')),(4, ref('base.group_sale_salesman'))]"/>
6      </record>
7 <!-- Demo Data for Product -->
8         <record id="event_product_0" model="product.product">
9                 <field name="list_price">68.00</field>
10                 <field name="standard_price">15.00</field>
11                 <field name="uom_id" ref="product.product_uom_unit"/>
12                 <field name="uom_po_id" ref="product.product_uom_unit"/>
13                 <field name="name">Ticket for Concert</field>
14                 <field name="categ_id" model="product.category" search="[]"/>
15         </record>
16
17         <record id="event_product_1" model="product.product">
18                 <field name="list_price">24.00</field>
19                 <field name="standard_price">15.00</field>
20                 <field name="uom_id" ref="product.product_uom_unit"/>
21                 <field name="uom_po_id" ref="product.product_uom_unit"/>
22                 <field name="name">Ticket for Opera</field>
23                 <field name="categ_id" model="product.category" search="[]"/>
24         </record>
25
26         <record id="event_product_2" model="product.product">
27                 <field name="list_price">15.50</field>
28                 <field name="standard_price">5.00</field>
29                 <field name="uom_id" ref="product.product_uom_unit"/>
30                 <field name="uom_po_id" ref="product.product_uom_unit"/>
31                 <field name="name">Ticket for Conference</field>
32                 <field name="categ_id" model="product.category" search="[]"/>
33         </record>
34
35
36 <!-- Demo Data for Event Type -->
37         <record id="event_type_0" model="event.type">
38                 <field name="name">Seminar</field>
39         </record>
40
41         <record id="event_type_1" model="event.type">
42                 <field name="name">Exhibition</field>
43         </record>
44
45         <record id="event_type_2" model="event.type">
46                 <field name="name">Conference</field>
47         </record>
48
49         <record id="event_type_3" model="event.type">
50                 <field name="name">Saloon</field>
51         </record>
52
53         <record id="event_type_4" model="event.type">
54                 <field name="name">Training</field>
55         </record>
56
57 <!-- Demo data for Event -->
58         <record id="event_0" model="event.event">
59                 <field name="name">Concert of Bon Jovi</field>
60         <field eval="time.strftime('%Y-%m-01 19:05:15')" name="date_begin"/>
61         <field eval="time.strftime('%Y-%m-01 23:05:15')" name="date_end"/>
62                 <field name="product_id" ref="event_product_0"/>
63                 <field name="unit_price">68.00</field>
64                 <field name="mail_auto_registr">True</field>
65                 <field name="mail_auto_confirm">True</field>
66                 <field name="user_id" ref="base.user_root"/>
67                 <field name="register_max">500</field>
68                 <field name="type" ref="event_type_1"/>
69         </record>
70
71         <record id="event_1" model="event.event">
72                 <field name="name">Opera of Verdi</field>
73         <field eval="time.strftime('%Y-%m-05 18:00:00')" name="date_begin"/>
74         <field eval="time.strftime('%Y-%m-05 21:00:00')" name="date_end"/>
75                 <field name="product_id" ref="event_product_1"/>
76                 <field name="unit_price">24.00</field>
77                 <field name="type" ref="event_type_1"/>
78                 <field name="user_id" ref="base.user_root"/>
79                 <field name="register_min">50</field>
80                 <field name="register_max">350</field>
81         </record>
82         <record id="event_2" model="event.event">
83                 <field name="name">Conference on ERP Buisness</field>
84         <field eval="time.strftime('%Y-%m-05 14:00:00')" name="date_begin"/>
85         <field eval="time.strftime('%Y-%m-05 16:30:00')" name="date_end"/>
86                 <field name="product_id" ref="event_product_2"/>
87                 <field name="unit_price">15.50</field>
88                 <field name="type" ref="event_type_2"/>
89                 <field name="register_max">200</field>
90                 <field name="user_id" ref="base.user_root"/>
91                 <field name="mail_auto_registr">True</field>
92                 <field name="mail_auto_confirm">True</field>
93                 <field name="mail_registr">Thanks for registration. We will keep you informed of the modalities.</field>
94                 <field name="mail_confirm">Thanks for registration. The conference will begin at 2 PM and will be given by Mr. Pinckaers.</field>
95         </record>
96     <function model="event.event" name="button_confirm" eval="[ref('event_2')]"/>
97     <function model="event.event" name="button_confirm" eval="[ref('event_2')]"/>
98
99 <!-- Demo data for Event Registration-->
100         <record id="reg_1_1" model="event.registration">
101                 <field name="event_id" ref="event_1"/>
102                 <field name="partner_id" ref="base.res_partner_asus"/>
103                 <field name="partner_invoice_id" ref="base.res_partner_asus"/>
104                 <field name="nb_register">5</field>
105                 <field name="event_product">Ticket for Opera</field>
106                 <field name="unit_price">24.00</field>
107         </record>
108
109         <record id="reg_1_2" model="event.registration">
110                 <field name="event_id" ref="event_1"/>
111                 <field name="partner_id" ref="base.res_partner_agrolait"/>
112                 <field name="partner_invoice_id" ref="base.res_partner_agrolait"/>
113                 <field name="nb_register">10</field>
114                 <field name="event_product">Ticket for Opera</field>
115                 <field name="unit_price">24.00</field>
116         </record>
117
118          <function model="event.registration" name="check_confirm" eval="[ref('reg_1_2')]"/> 
119
120         <record id="reg_0_1" model="event.registration">
121                 <field name="event_id" ref="event_0"/>
122                 <field name="partner_id" ref="base.res_partner_c2c"/>
123                 <field name="partner_invoice_id" ref="base.res_partner_c2c"/>
124                 <field name="nb_register">6</field>
125                 <field name="event_product">Ticket for Concert</field>
126                 <field name="unit_price">15.50</field>
127         </record>
128
129          <function model="event.registration" name="check_confirm" eval="[ref('reg_0_1')]"/> 
130
131     <record id="reg_0_2" model="event.registration">
132         <field name="event_id" ref="event_2"/>
133         <field name="partner_id" ref="base.res_partner_c2c"/>
134         <field name="partner_invoice_id" ref="base.res_partner_c2c"/>
135         <field name="nb_register">5</field>
136         <field name="event_product">Ticket for Conference</field>
137         <field name="unit_price">20</field>
138     </record>
139     
140     <function model="event.registration" name="check_confirm" eval="[ref('reg_0_2')]"/>
141     
142         </data>
143 </openerp>