From 3751379f1e9a4c215fb6eb898b4ccc67659b9ace Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 21:51:50 +0700 Subject: initial commit 2 --- addons/lunch/data/ir_cron_data.xml | 29 +++ addons/lunch/data/lunch_data.xml | 193 ++++++++++++++++ addons/lunch/data/lunch_demo.xml | 439 +++++++++++++++++++++++++++++++++++++ 3 files changed, 661 insertions(+) create mode 100644 addons/lunch/data/ir_cron_data.xml create mode 100644 addons/lunch/data/lunch_data.xml create mode 100644 addons/lunch/data/lunch_demo.xml (limited to 'addons/lunch/data') diff --git a/addons/lunch/data/ir_cron_data.xml b/addons/lunch/data/ir_cron_data.xml new file mode 100644 index 00000000..5c78a5b7 --- /dev/null +++ b/addons/lunch/data/ir_cron_data.xml @@ -0,0 +1,29 @@ + + + + + Lunch: automatic email send + + code + model._auto_email_send() + + + 20 + minutes + -1 + + + + Lunch: alert chat notification + + code + model._notify_chat() + + + 5 + minutes + -1 + + + + diff --git a/addons/lunch/data/lunch_data.xml b/addons/lunch/data/lunch_data.xml new file mode 100644 index 00000000..ca9c1c3d --- /dev/null +++ b/addons/lunch/data/lunch_data.xml @@ -0,0 +1,193 @@ + + + + + HQ Office + + + + Sandwich + + + + Pizza + + + + + Burger + + + + + Drinks + + + + + Lunch Supplier + + + + + + + + + + Lunch: Receive meals + + + list + code + records.action_confirm() + + + + Lunch: Cancel meals + + + list + code + records.action_cancel() + + + + + Lunch: Send by email + + ${ctx['order']['email_from'] |safe} + ${ctx['order']['supplier_id']} + Orders for ${ctx['order']['company_name']} + ${ctx.get('default_lang')} + + + + +
+ + + + + + + + + + + + + + + +
+ + + +
+ Lunch Order
+
+ +
+
+
+
+ + + + + + + +
+
+ % set lines = ctx['lines'] + % set order = ctx['order'] + % set supplier = user.env['res.partner'].browse(order['supplier_id']) + % set currency = user.env['res.currency'].browse(order['currency_id']) +

+ Dear ${order['supplier_name']}, +

+ Here is, today orders for ${order['company_name']}: +

+ + + + + + + + + + + + + % for line in lines + + + + + + + + % endfor + + + + + + + + +
ProductCommentsPersonQtyPrice
${line['product']} + % if line['toppings']: + ${line['toppings']} + % endif + % if line['note']: +
${line['note']}
+ % endif +
${line['username']}${line['quantity']}${format_amount(line['price'], currency)}
Total${format_amount(order['amount_total'], currency)}
+ +

Do not hesitate to contact us if you have any questions.

+
+
+
+
+
+ + + +
+ ${user.company_id.name} +
+ ${user.company_id.phone} + % if user.company_id.phone and (user.company_id.email or user.company_id.website) + | + % endif + % if user.company_id.email + ${user.company_id.email} + % endif + % if user.company_id.email and user.company_id.website + | + % endif + % if user.company_id.website + + ${user.company_id.website} + + % endif +
+
+
+ + +
+ Powered by Odoo +
+
+
+
+ +
+
diff --git a/addons/lunch/data/lunch_demo.xml b/addons/lunch/data/lunch_demo.xml new file mode 100644 index 00000000..14dab611 --- /dev/null +++ b/addons/lunch/data/lunch_demo.xml @@ -0,0 +1,439 @@ + + + + + + 87323 Francis Corner Oscarhaven, OK 12782 + + + + Hungry Dog + Russeltown + + 975 Bullock Orchard + 02155 + cynthiasanchez@gmail.com + + + + Bacon + + 7.2 + + Beef, Bacon, Salad, Cheddar, Fried Onion, BBQ Sauce + + + + + Cheese Burger + + 6.8 + + Beef, Cheddar, Salad, Fried Onions, BBQ Sauce + + + + + Club + + 3.4 + + Ham, Cheese, Vegetables + + + + + Coca Cola + + 2.9 + + + + + Pizza Margherita + + 6.90 + + Tomatoes, Mozzarella + + + + + Office 1 + + + + Office 2 + + + + Office 3 + + + + + + + + + + + + + Pasta + + + + Sushi + + + + Temaki + + + + Chirashi + + + + Coin gourmand + Tirana + + Rr. e Durrësit, Pall. M.C. Inerte + Kati.1, Laprakë, Tirana, Shqipëri + coin.gourmand@yourcompany.example.com + +32485562388 + + + + Pizza Inn + New Delhi TN + + #8, 1 st Floor,iscore complex + Gandhi Gramam,Gandhi Nagar + 607308 + pizza.inn@yourcompany.example.com + +32456325289 + + + + The Corner + Atlanta + + Genessee Ave SW + 607409 + info@corner.com + +32654321515 + + + + Sushi Shop + Paris + + Boulevard Saint-Germain + 486624 + order@sushi.com + +32498859912 + + + + + + + + + + mail + 11 + + + + + + + + + + + + + + + Bacon + + 7.5 + + Beef, Bacon, Salad, Cheddar, Fried Onion, BBQ Sauce + + + + + + Cheese Burger + + 7.0 + + Beef, Cheddar, Salad, Fried Onions, BBQ Sauce + + + + + Chicken Curry + + 3.0 + + + + + + Spicy Tuna + + 3.0 + + + + + + Mozzarella + + 3.9 + + Mozzarella, Pesto, Tomatoes + + + + + Club + + 3.4 + + Ham, Cheese, Vegetables + + + + + Lunch Maki 18pc + + 12.0 + + 6 Maki Salmon - 6 Maki Tuna - 6 Maki Shrimp/Avocado + + + + + + Lunch Salmon 20pc + + 13.80 + + 4 Sushi Salmon - 6 Maki Salmon - 4 Sashimi Salmon + + + + + + Lunch Temaki mix 3pc + + 14.0 + + 1 Avocado - 1 Salmon - 1 Eggs - 1 Tuna + + + + + + Salmon and Avocado + + 9.25 + + 2 Tempuras, Cabbages, Onions, Sesame Sauce + + + + + + Cheese And Ham + + 3.30 + + Cheese, Ham, Salad, Tomatoes, cucumbers, eggs + + + + + The Country + + 3.30 + + Brie, Honey, Walnut Kernels + + + + + Tuna + + 2.50 + + Tuna, Mayonnaise + + + + + Gouda Cheese + + 2.50 + + + + + + + Chicken Curry + + 2.60 + + + + + + + Pizza Margherita + + 6.90 + + Tomatoes, Mozzarella + + + + + Pizza Funghi + + 7.00 + + Tomatoes, Mushrooms, Mozzarella + + + + + Pizza Vegetarian + + 7.00 + + Tomatoes, Mozzarella, Mushrooms, Peppers, Olives + + + + + Pizza Italiana + + 7.40 + + Fresh Tomatoes, Basil, Mozzarella + + + + + Bolognese Pasta + + 7.70 + + + + + + + Napoli Pasta + + 7.70 + + Tomatoes, Basil + + + + + Olives + 0.30 + + + + + 4 Formaggi + + 5.50 + + Tomato sauce, Olive oil, Fresh Tomatoes, Onions, Vegetables, Parmesan + + + + + + + Payment: 5 lunch tickets (6€) + 30 + + + + + + Payment: 7 lunch tickets (6€) + 42 + + + + + + 7.70 + + new + + 1 + + + + + + 7.40 + + confirmed + + 1 + + + + + + 2.50 + + cancelled + + 1 + + + + + + 2.60 + + confirmed + + 1 + + + + + + 5.50 + + confirmed + + + + -- cgit v1.2.3