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/coupon/data/coupon_email_data.xml | 117 +++++++++++++++++++++++++++++++ 1 file changed, 117 insertions(+) create mode 100644 addons/coupon/data/coupon_email_data.xml (limited to 'addons/coupon/data') diff --git a/addons/coupon/data/coupon_email_data.xml b/addons/coupon/data/coupon_email_data.xml new file mode 100644 index 00000000..71d2f80e --- /dev/null +++ b/addons/coupon/data/coupon_email_data.xml @@ -0,0 +1,117 @@ + + + + + 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 + +
+
-- cgit v1.2.3