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
Product Comments Person Qty Price
${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