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/lunch_data.xml | 193 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 193 insertions(+) create mode 100644 addons/lunch/data/lunch_data.xml (limited to 'addons/lunch/data/lunch_data.xml') 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 +
+
+
+
+ +
+
-- cgit v1.2.3