lunch_demo.xml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <data noupdate="1">
  4. <record id="lunch_location_main" model="lunch.location">
  5. <field name="address">87323 Francis Corner Oscarhaven, OK 12782</field>
  6. </record>
  7. <record id="partner_hungry_dog" model="res.partner">
  8. <field name="name">Hungry Dog</field>
  9. <field name="city">Russeltown</field>
  10. <field name="country_id" ref="base.us"/>
  11. <field name="street">975 Bullock Orchard</field>
  12. <field name="zip">02155</field>
  13. <field name="email">cynthiasanchez@gmail.com</field>
  14. <field name="company_id" ref="base.main_company"/>
  15. </record>
  16. <record id="product_bacon_0" model="lunch.product">
  17. <field name="name">Bacon</field>
  18. <field name="category_id" ref="categ_burger"/>
  19. <field name="price">7.2</field>
  20. <field name="supplier_id" ref="supplier_hungry_dog"/>
  21. <field name="description">Beef, Bacon, Salad, Cheddar, Fried Onion, BBQ Sauce</field>
  22. <field name="image_1920" type="base64" file="lunch/static/img/bacon_burger.png"/>
  23. <field name="company_id" ref="base.main_company"/>
  24. </record>
  25. <record id="product_cheese_burger_0" model="lunch.product">
  26. <field name="name">Cheese Burger</field>
  27. <field name="category_id" ref="categ_burger"/>
  28. <field name="price">6.8</field>
  29. <field name="supplier_id" ref="supplier_hungry_dog"/>
  30. <field name="description">Beef, Cheddar, Salad, Fried Onions, BBQ Sauce</field>
  31. <field name="image_1920" type="base64" file="lunch/static/img/cheeseburger.png"/>
  32. <field name="company_id" ref="base.main_company"/>
  33. </record>
  34. <record id="product_club_0" model="lunch.product">
  35. <field name="name">Club</field>
  36. <field name="category_id" ref="categ_sandwich"/>
  37. <field name="price">3.4</field>
  38. <field name="supplier_id" ref="supplier_hungry_dog"/>
  39. <field name="description">Ham, Cheese, Vegetables</field>
  40. <field name="image_1920" type="base64" file="lunch/static/img/club.png"/>
  41. <field name="company_id" ref="base.main_company"/>
  42. </record>
  43. <record id="product_coke_0" model="lunch.product">
  44. <field name="name">Coca Cola</field>
  45. <field name="category_id" ref="categ_drinks"/>
  46. <field name="price">2.9</field>
  47. <field name="description"></field>
  48. <field name="supplier_id" ref="supplier_hungry_dog"/>
  49. <field name="company_id" ref="base.main_company"/>
  50. </record>
  51. <record id="product_pizza_0" model="lunch.product">
  52. <field name="name">Pizza Margherita</field>
  53. <field name="category_id" ref="categ_pizza"/>
  54. <field name="price">6.90</field>
  55. <field name="supplier_id" ref="supplier_hungry_dog"/>
  56. <field name="description">Tomatoes, Mozzarella</field>
  57. <field name="company_id" ref="base.main_company"/>
  58. </record>
  59. <record id="location_office_1" model="lunch.location">
  60. <field name="name">Office 1</field>
  61. </record>
  62. <record id="location_office_2" model="lunch.location">
  63. <field name="name">Office 2</field>
  64. </record>
  65. <record id="location_office_3" model="lunch.location">
  66. <field name="name">Office 3</field>
  67. </record>
  68. <record id="alert_office_3" model="lunch.alert">
  69. <field name="name">Alert for Office 3</field>
  70. <field name="message">Please order</field>
  71. <field name="location_ids" eval="[(4, ref('location_office_3'))]" />
  72. <field name="mode">chat</field>
  73. </record>
  74. <record id="base.user_admin" model="res.users">
  75. <field name="last_lunch_location_id" ref="location_office_2"/>
  76. </record>
  77. <record id="base.user_demo" model="res.users">
  78. <field name="last_lunch_location_id" ref="location_office_3"/>
  79. <field name="groups_id" eval="[(4, ref('lunch.group_lunch_user'))]"/>
  80. </record>
  81. <record model="lunch.product.category" id="categ_pasta">
  82. <field name="name">Pasta</field>
  83. </record>
  84. <record model="lunch.product.category" id="categ_sushi">
  85. <field name="name">Sushi</field>
  86. </record>
  87. <record model="lunch.product.category" id="categ_temaki">
  88. <field name="name">Temaki</field>
  89. </record>
  90. <record model="lunch.product.category" id="categ_chirashi">
  91. <field name="name">Chirashi</field>
  92. </record>
  93. <record id="partner_coin_gourmand" model="res.partner">
  94. <field name="name">Coin gourmand</field>
  95. <field name="city">Tirana</field>
  96. <field name="country_id" ref="base.al"/>
  97. <field name="street">Rr. e Durrësit, Pall. M.C. Inerte</field>
  98. <field name="street2">Kati.1, Laprakë, Tirana, Shqipëri</field>
  99. <field name="email">coin.gourmand@yourcompany.example.com</field>
  100. <field name="phone">+32485562388</field>
  101. </record>
  102. <record id="partner_pizza_inn" model="res.partner">
  103. <field name="name">Pizza Inn</field>
  104. <field name="city">New Delhi TN</field>
  105. <field name="country_id" ref="base.us"/>
  106. <field name="street">#8, 1 st Floor,iscore complex</field>
  107. <field name="street2">Gandhi Gramam,Gandhi Nagar</field>
  108. <field name="zip">607308</field>
  109. <field name="email">pizza.inn@yourcompany.example.com</field>
  110. <field name="phone">+32456325289</field>
  111. </record>
  112. <record model="res.partner" id="partner_corner">
  113. <field name="name">The Corner</field>
  114. <field name="city">Atlanta</field>
  115. <field name="country_id" ref="base.us"/>
  116. <field name="street">Genessee Ave SW</field>
  117. <field name="zip">607409</field>
  118. <field name="email">info@corner.com</field>
  119. <field name="phone">+32654321515</field>
  120. </record>
  121. <record model="res.partner" id="partner_sushi_shop">
  122. <field name="name">Sushi Shop</field>
  123. <field name="city">Paris</field>
  124. <field name="country_id" ref="base.fr"/>
  125. <field name="street">Boulevard Saint-Germain</field>
  126. <field name="zip">486624</field>
  127. <field name="email">order@sushi.com</field>
  128. <field name="phone">+32498859912</field>
  129. </record>
  130. <record model="lunch.supplier" id="supplier_coin_gourmand">
  131. <field name="partner_id" ref="partner_coin_gourmand"/>
  132. <field name="available_location_ids" eval="[
  133. (6, 0, [ref('location_office_1'), ref('location_office_2')]),
  134. ]"/>
  135. </record>
  136. <record model="lunch.supplier" id="supplier_pizza_inn">
  137. <field name="partner_id" ref="partner_pizza_inn"/>
  138. <field name="send_by">mail</field>
  139. <field name="automatic_email_time">11</field>
  140. <field name="available_location_ids" eval="[
  141. (6, 0, [ref('location_office_1'), ref('location_office_2')]),
  142. ]"/>
  143. </record>
  144. <record model="lunch.supplier" id="supplier_corner">
  145. <field name="partner_id" ref="partner_corner"/>
  146. <field name="available_location_ids" eval="[
  147. (6, 0, [ref('location_office_3')]),
  148. ]"/>
  149. </record>
  150. <record model="lunch.supplier" id="supplier_sushi_shop">
  151. <field name="partner_id" ref="partner_sushi_shop"/>
  152. <field name="available_location_ids" eval="[
  153. (6, 0, [ref('location_office_1'), ref('location_office_2')]),
  154. ]"/>
  155. </record>
  156. <record model="lunch.product" id="product_bacon">
  157. <field name="name">Bacon</field>
  158. <field name="category_id" ref="categ_burger"/>
  159. <field name="price">7.5</field>
  160. <field name="supplier_id" ref="supplier_corner"/>
  161. <field name="description">Beef, Bacon, Salad, Cheddar, Fried Onion, BBQ Sauce</field>
  162. <field name="image_1920" type="base64" file="lunch/static/img/bacon_burger.png"/>
  163. <field name="new_until" eval="datetime.today() + relativedelta(weeks=1)"/>
  164. <field name="company_id" ref="base.main_company"/>
  165. </record>
  166. <record model="lunch.product" id="product_cheeseburger">
  167. <field name="name">Cheese Burger</field>
  168. <field name="category_id" ref="categ_burger"/>
  169. <field name="price">7.0</field>
  170. <field name="supplier_id" ref="supplier_corner"/>
  171. <field name="description">Beef, Cheddar, Salad, Fried Onions, BBQ Sauce</field>
  172. <field name="image_1920" type="base64" file="lunch/static/img/cheeseburger.png"/>
  173. <field name="company_id" ref="base.main_company"/>
  174. </record>
  175. <record model="lunch.product" id="product_chicken_curry">
  176. <field name="name">Chicken Curry</field>
  177. <field name="category_id" ref="categ_sandwich"/>
  178. <field name="price">3.0</field>
  179. <field name="supplier_id" ref="supplier_corner"/>
  180. <field name="image_1920" type="base64" file="lunch/static/img/chicken_curry.png"/>
  181. <field name="company_id" ref="base.main_company"/>
  182. </record>
  183. <record model="lunch.product" id="product_spicy_tuna">
  184. <field name="name">Spicy Tuna</field>
  185. <field name="category_id" ref="categ_sandwich"/>
  186. <field name="price">3.0</field>
  187. <field name="supplier_id" ref="supplier_corner"/>
  188. <field name="description"></field>
  189. <field name="image_1920" type="base64" file="lunch/static/img/chicken_curry.png"/>
  190. <field name="company_id" ref="base.main_company"/>
  191. </record>
  192. <record model="lunch.product" id="product_mozzarella">
  193. <field name="name">Mozzarella</field>
  194. <field name="category_id" ref="categ_sandwich"/>
  195. <field name="price">3.9</field>
  196. <field name="supplier_id" ref="supplier_corner"/>
  197. <field name="description">Mozzarella, Pesto, Tomatoes</field>
  198. <field name="image_1920" type="base64" file="lunch/static/img/mozza.png"/>
  199. <field name="company_id" ref="base.main_company"/>
  200. </record>
  201. <record model="lunch.product" id="product_club">
  202. <field name="name">Club</field>
  203. <field name="category_id" ref="categ_sandwich"/>
  204. <field name="price">3.4</field>
  205. <field name="supplier_id" ref="supplier_corner"/>
  206. <field name="description">Ham, Cheese, Vegetables</field>
  207. <field name="image_1920" type="base64" file="lunch/static/img/club.png"/>
  208. <field name="company_id" ref="base.main_company"/>
  209. </record>
  210. <record model="lunch.product" id="product_maki">
  211. <field name="name">Lunch Maki 18pc</field>
  212. <field name="category_id" ref="categ_sushi"/>
  213. <field name="price">12.0</field>
  214. <field name="supplier_id" ref="supplier_sushi_shop"/>
  215. <field name="description">6 Maki Salmon - 6 Maki Tuna - 6 Maki Shrimp/Avocado</field>
  216. <field name="image_1920" type="base64" file="lunch/static/img/maki.png"/>
  217. <field name="new_until" eval="datetime.today() + relativedelta(weeks=1)"/>
  218. <field name="company_id" ref="base.main_company"/>
  219. </record>
  220. <record model="lunch.product" id="product_salmon">
  221. <field name="name">Lunch Salmon 20pc</field>
  222. <field name="category_id" ref="categ_sushi"/>
  223. <field name="price">13.80</field>
  224. <field name="supplier_id" ref="supplier_sushi_shop"/>
  225. <field name="description">4 Sushi Salmon - 6 Maki Salmon - 4 Sashimi Salmon </field>
  226. <field name="image_1920" type="base64" file="lunch/static/img/salmon_sushi.png"/>
  227. <field name="new_until" eval="datetime.today() + relativedelta(weeks=1)"/>
  228. <field name="company_id" ref="base.main_company"/>
  229. </record>
  230. <record model="lunch.product" id="product_temaki">
  231. <field name="name">Lunch Temaki mix 3pc</field>
  232. <field name="category_id" ref="categ_temaki"/>
  233. <field name="price">14.0</field>
  234. <field name="supplier_id" ref="supplier_sushi_shop"/>
  235. <field name="description">1 Avocado - 1 Salmon - 1 Eggs - 1 Tuna</field>
  236. <field name="image_1920" type="base64" file="lunch/static/img/temaki.png"/>
  237. <field name="new_until" eval="datetime.today() + relativedelta(weeks=1)"/>
  238. <field name="company_id" ref="base.main_company"/>
  239. </record>
  240. <record model="lunch.product" id="product_chirashi">
  241. <field name="name">Salmon and Avocado</field>
  242. <field name="category_id" ref="categ_chirashi"/>
  243. <field name="price">9.25</field>
  244. <field name="supplier_id" ref="supplier_sushi_shop"/>
  245. <field name="description">2 Tempuras, Cabbages, Onions, Sesame Sauce</field>
  246. <field name="image_1920" type="base64" file="lunch/static/img/chirashi.png"/>
  247. <field name="new_until" eval="datetime.today() + relativedelta(weeks=1)"/>
  248. <field name="company_id" ref="base.main_company"/>
  249. </record>
  250. <record model="lunch.product" id="product_cheese_ham">
  251. <field name="name">Cheese And Ham</field>
  252. <field name="category_id" ref="categ_sandwich"/>
  253. <field name="price">3.30</field>
  254. <field name="supplier_id" ref="supplier_coin_gourmand"/>
  255. <field name="description">Cheese, Ham, Salad, Tomatoes, cucumbers, eggs</field>
  256. <field name="image_1920" type="base64" file="lunch/static/img/club.png"/>
  257. <field name="company_id" ref="base.main_company"/>
  258. </record>
  259. <record model="lunch.product" id="product_country">
  260. <field name="name">The Country</field>
  261. <field name="category_id" ref="categ_sandwich"/>
  262. <field name="price">3.30</field>
  263. <field name="supplier_id" ref="supplier_coin_gourmand"/>
  264. <field name="description">Brie, Honey, Walnut Kernels</field>
  265. <field name="image_1920" type="base64" file="lunch/static/img/brie.png"/>
  266. <field name="company_id" ref="base.main_company"/>
  267. </record>
  268. <record model="lunch.product" id="product_tuna">
  269. <field name="name">Tuna</field>
  270. <field name="category_id" ref="categ_sandwich"/>
  271. <field name="price">2.50</field>
  272. <field name="supplier_id" ref="supplier_coin_gourmand"/>
  273. <field name="description">Tuna, Mayonnaise</field>
  274. <field name="image_1920" type="base64" file="lunch/static/img/tuna_sandwich.png"/>
  275. <field name="company_id" ref="base.main_company"/>
  276. </record>
  277. <record model="lunch.product" id="product_gouda">
  278. <field name="name">Gouda Cheese</field>
  279. <field name="category_id" ref="categ_sandwich"/>
  280. <field name="price">2.50</field>
  281. <field name="supplier_id" ref="supplier_coin_gourmand"/>
  282. <field name="description"></field>
  283. <field name="image_1920" type="base64" file="lunch/static/img/gouda.png"/>
  284. <field name="company_id" ref="base.main_company"/>
  285. </record>
  286. <record model="lunch.product" id="product_chicken_curry">
  287. <field name="name">Chicken Curry</field>
  288. <field name="category_id" ref="categ_sandwich"/>
  289. <field name="price">2.60</field>
  290. <field name="supplier_id" ref="supplier_coin_gourmand"/>
  291. <field name="description"></field>
  292. <field name="image_1920" type="base64" file="lunch/static/img/chicken_curry.png"/>
  293. <field name="company_id" ref="base.main_company"/>
  294. </record>
  295. <record model="lunch.product" id="product_margherita">
  296. <field name="name">Pizza Margherita</field>
  297. <field name="category_id" ref="categ_pizza"/>
  298. <field name="price">6.90</field>
  299. <field name="supplier_id" ref="supplier_pizza_inn"/>
  300. <field name="description">Tomatoes, Mozzarella</field>
  301. <field name="image_1920" type="base64" file="lunch/static/img/pizza_margherita.png"/>
  302. <field name="company_id" ref="base.main_company"/>
  303. </record>
  304. <record model="lunch.product" id="product_funghi">
  305. <field name="name">Pizza Funghi</field>
  306. <field name="category_id" ref="categ_pizza"/>
  307. <field name="price">7.00</field>
  308. <field name="supplier_id" ref="supplier_pizza_inn"/>
  309. <field name="description">Tomatoes, Mushrooms, Mozzarella</field>
  310. <field name="image_1920" type="base64" file="lunch/static/img/pizza_funghi.png"/>
  311. <field name="company_id" ref="base.main_company"/>
  312. </record>
  313. <record model="lunch.product" id="product_vege">
  314. <field name="name">Pizza Vegetarian</field>
  315. <field name="category_id" ref="categ_pizza"/>
  316. <field name="price">7.00</field>
  317. <field name="supplier_id" ref="supplier_pizza_inn"/>
  318. <field name="description">Tomatoes, Mozzarella, Mushrooms, Peppers, Olives</field>
  319. <field name="image_1920" type="base64" file="lunch/static/img/pizza_veggie.png"/>
  320. <field name="company_id" ref="base.main_company"/>
  321. </record>
  322. <record model="lunch.product" id="product_italiana">
  323. <field name="name">Pizza Italiana</field>
  324. <field name="category_id" ref="categ_pizza"/>
  325. <field name="price">7.40</field>
  326. <field name="supplier_id" ref="supplier_pizza_inn"/>
  327. <field name="description">Fresh Tomatoes, Basil, Mozzarella</field>
  328. <field name="image_1920" type="base64" file="lunch/static/img/italiana.png"/>
  329. <field name="company_id" ref="base.main_company"/>
  330. </record>
  331. <record model="lunch.product" id="product_Bolognese">
  332. <field name="name">Bolognese Pasta</field>
  333. <field name="category_id" ref="categ_pasta"/>
  334. <field name="price">7.70</field>
  335. <field name="supplier_id" ref="supplier_pizza_inn"/>
  336. <field name="description"></field>
  337. <field name="image_1920" type="base64" file="lunch/static/img/pasta_bolognese.png"/>
  338. <field name="company_id" ref="base.main_company"/>
  339. </record>
  340. <record model="lunch.product" id="product_Napoli">
  341. <field name="name">Napoli Pasta</field>
  342. <field name="category_id" ref="categ_pasta"/>
  343. <field name="price">7.70</field>
  344. <field name="supplier_id" ref="supplier_pizza_inn"/>
  345. <field name="description">Tomatoes, Basil</field>
  346. <field name="image_1920" type="base64" file="lunch/static/img/napoli.png"/>
  347. <field name="company_id" ref="base.main_company"/>
  348. </record>
  349. <record model="lunch.topping" id="product_olives">
  350. <field name="name">Olives</field>
  351. <field name="price">0.30</field>
  352. <field name="supplier_id" ref="supplier_pizza_inn"/>
  353. </record>
  354. <record model="lunch.product" id="product_4formaggi">
  355. <field name="name">4 Formaggi</field>
  356. <field name="category_id" ref="categ_pasta"/>
  357. <field name="price">5.50</field>
  358. <field name="supplier_id" ref="supplier_pizza_inn"/>
  359. <field name="description">Tomato sauce, Olive oil, Fresh Tomatoes, Onions, Vegetables, Parmesan</field>
  360. <field name="image_1920" type="base64" file="lunch/static/img/4formaggio.png"/>
  361. <field name="company_id" ref="base.main_company"/>
  362. </record>
  363. <record model="lunch.cashmove" id="cashmove_1">
  364. <field name="user_id" ref="base.user_demo"/>
  365. <field name="date" eval="(DateTime.now() + timedelta(days=3)).strftime('%Y-%m-%d')"/>
  366. <field name="description">Payment: 5 lunch tickets (6€)</field>
  367. <field name="amount">30</field>
  368. </record>
  369. <record model="lunch.cashmove" id="cashmove_2">
  370. <field name="user_id" ref="base.user_admin"/>
  371. <field name="date" eval="(DateTime.now() - timedelta(days=3)).strftime('%Y-%m-%d')"/>
  372. <field name="description">Payment: 7 lunch tickets (6€)</field>
  373. <field name="amount">42</field>
  374. </record>
  375. <record model="lunch.order" id="order_line_1">
  376. <field name="user_id" ref="base.user_demo"/>
  377. <field name="product_id" ref="product_Bolognese"/>
  378. <field name="price">7.70</field>
  379. <field name="date" eval="(DateTime.now() + timedelta(days=2)).strftime('%Y-%m-%d')"/>
  380. <field name="state">new</field>
  381. <field name="supplier_id" ref="supplier_pizza_inn"/>
  382. <field name="quantity">1</field>
  383. <field name="lunch_location_id" ref="location_office_3"/>
  384. </record>
  385. <record model="lunch.order" id="order_line_2">
  386. <field name="user_id" ref="base.user_demo"/>
  387. <field name="product_id" ref="product_italiana"/>
  388. <field name="price">7.40</field>
  389. <field name="date" eval="(DateTime.now() + timedelta(days=1)).strftime('%Y-%m-%d')"/>
  390. <field name="state">confirmed</field>
  391. <field name="supplier_id" ref="supplier_pizza_inn"/>
  392. <field name="quantity">1</field>
  393. <field name="lunch_location_id" ref="location_office_3"/>
  394. </record>
  395. <record model="lunch.order" id="order_line_3">
  396. <field name="user_id" ref="base.user_demo"/>
  397. <field name="product_id" ref="product_gouda"/>
  398. <field name="price">2.50</field>
  399. <field name="date" eval="(DateTime.now() + timedelta(days=3)).strftime('%Y-%m-%d')"/>
  400. <field name="state">cancelled</field>
  401. <field name="supplier_id" ref="supplier_coin_gourmand"/>
  402. <field name="quantity">1</field>
  403. <field name="lunch_location_id" ref="location_office_3"/>
  404. </record>
  405. <record model="lunch.order" id="order_line_4">
  406. <field name="user_id" ref="base.user_demo"/>
  407. <field name="product_id" ref="product_chicken_curry"/>
  408. <field name="price">2.60</field>
  409. <field name="date" eval="(DateTime.now() + timedelta(days=3)).strftime('%Y-%m-%d')"/>
  410. <field name="state">confirmed</field>
  411. <field name="supplier_id" ref="supplier_coin_gourmand"/>
  412. <field name="quantity">1</field>
  413. <field name="lunch_location_id" ref="location_office_3"/>
  414. </record>
  415. <record model="lunch.order" id="order_line_5">
  416. <field name="user_id" ref="base.user_admin"/>
  417. <field name="product_id" ref="product_4formaggi"/>
  418. <field name="price">5.50</field>
  419. <field name="date" eval="(DateTime.now() + timedelta(days=3)).strftime('%Y-%m-%d')"/>
  420. <field name="state">confirmed</field>
  421. <field name="supplier_id" ref="supplier_pizza_inn"/>
  422. <field name="lunch_location_id" ref="location_office_2"/>
  423. </record>
  424. </data>
  425. </odoo>