Coupon: Send by Email Your reward coupon from ${object.program_id.company_id.name} ${object.program_id.company_id.email | safe} ${object.order_id.partner_id.id or object.partner_id.id} ${object.partner_id.lang}
% if object.partner_id.name: Congratulations ${object.partner_id.name},
% endif Here is your reward from ${object.program_id.company_id.name}.
% if object.program_id.reward_type == 'discount': % if object.program_id.discount_type == 'fixed_amount': ${'%s' % format_amount(object.program_id.discount_fixed_amount, object.program_id.currency_id)}
off on your next order
%else ${object.program_id.discount_percentage} % % if object.program_id.discount_apply_on == 'specific_products'
% if len(object.program_id.discount_specific_product_ids) != 1 % set display_specific_products = True on some products* % else ${'on %s' % object.program_id.discount_specific_product_ids.name} % endif % elif object.program_id.discount_apply_on == 'cheapest_product':
off on the cheapest product % else
off on your next order % endif
% endif % elif object.program_id.reward_type == 'product': ${'get %s free %s' % (object.program_id.reward_product_quantity, object.program_id.reward_product_id.name)}
on your next order
% elif object.program_id.reward_type == 'free_shipping': get free shipping
on your next order
% endif
Use this promo code % if object.expiration_date: before ${object.expiration_date} % endif

${object.code}

% if object.program_id.rule_min_quantity not in [0, 1] Minimum purchase of ${object.program_id.rule_min_quantity} products
% endif % if object.program_id.rule_minimum_amount != 0.00 Valid for purchase above ${object.program_id.company_id.currency_id.symbol}${'%0.2f' % object.program_id.rule_minimum_amount |float}
% endif % if display_specific_products *Valid for following products: ${', '.join(object.program_id.discount_specific_product_ids.mapped('name'))}
% endif
Thank you, % if object.order_id.user_id.signature:
${object.order_id.user_id.signature | safe} % endif
Your Coupon Code ${object.partner_id.lang}
Coupon: expire coupon based on date code model.cron_expire_coupon() 1 days -1