|
+ % 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_product': + + ${'on %s' % object.program_id.discount_specific_product_id.name} + + % 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 + + Thank you, + + % if object.order_id.user_id: + ${object.order_id.user_id.signature | safe} + % endif + |
| \n"
+" % if object.partner_id.name:\n"
+" Congratulations ${object.partner_id.name}, \n" +" % endif\n" +"\n" +" Here is your reward from ${object.program_id.company_id.name}. \n" +"\n" +" % if object.program_id.reward_type == 'discount':\n" +" % if object.program_id.discount_type == 'fixed_amount':\n" +" \n" +" ${'%s' % format_amount(object.program_id.discount_fixed_amount, object.program_id.currency_id)}\n" +" \n" +" off on your next order \n" +" %else\n" +" \n" +" ${object.program_id.discount_percentage} %\n" +" \n" +" % if object.program_id.discount_apply_on == 'specific_product':\n" +" \n" +" ${'on %s' % object.program_id.discount_specific_product_id.name}\n" +" \n" +" % elif object.program_id.discount_apply_on == 'cheapest_product':\n" +" \n" +" off on the cheapest product\n" +" \n" +" % else\n" +" \n" +" off on your next order\n" +" \n" +" % endif\n" +" \n" +" % endif\n" +" % elif object.program_id.reward_type == 'product':\n" +" \n" +" ${'get %s free %s' % (object.program_id.reward_product_quantity, object.program_id.reward_product_id.name)}\n" +" \n" +" on your next order \n" +" % elif object.program_id.reward_type == 'free_shipping':\n" +" \n" +" get free shipping\n" +" \n" +" on your next order \n" +" % endif\n" +" |
| \n"
+" Use this promo code\n"
+" % if object.expiration_date:\n"
+" before ${object.expiration_date}\n"
+" % endif\n"
+" \n" +" \n" +" ${object.code}\n" +" \n" +" \n" +" % if object.program_id.rule_min_quantity not in [0, 1]\n" +" \n" +" Minimum purchase of ${object.program_id.rule_min_quantity} products\n" +"\n" +" % endif\n" +" % if object.program_id.rule_minimum_amount != 0.00\n" +" \n" +" Valid for purchase above ${object.program_id.company_id.currency_id.symbol}${'%0.2f' % object.program_id.rule_minimum_amount |float}\n" +" \n" +" % endif\n" +" \n" +" Thank you,\n" +" \n" +" % if object.order_id.user_id:\n" +" ${object.order_id.user_id.signature | safe}\n" +" % endif\n" +" |
| \n"
+" % if object.partner_id.name:\n"
+" Congratulations ${object.partner_id.name}, \n" +" % endif\n" +"\n" +" Here is your reward from ${object.program_id.company_id.name}. \n" +"\n" +" % if object.program_id.reward_type == 'discount':\n" +" % if object.program_id.discount_type == 'fixed_amount':\n" +" \n" +" ${'%s' % format_amount(object.program_id.discount_fixed_amount, object.program_id.currency_id)}\n" +" \n" +" off on your next order \n" +" %else\n" +" \n" +" ${object.program_id.discount_percentage} %\n" +" \n" +" % if object.program_id.discount_apply_on == 'specific_product':\n" +" \n" +" ${'on %s' % object.program_id.discount_specific_product_id.name}\n" +" \n" +" % elif object.program_id.discount_apply_on == 'cheapest_product':\n" +" \n" +" off on the cheapest product\n" +" \n" +" % else\n" +" \n" +" off on your next order\n" +" \n" +" % endif\n" +" \n" +" % endif\n" +" % elif object.program_id.reward_type == 'product':\n" +" \n" +" ${'get %s free %s' % (object.program_id.reward_product_quantity, object.program_id.reward_product_id.name)}\n" +" \n" +" on your next order \n" +" % elif object.program_id.reward_type == 'free_shipping':\n" +" \n" +" get free shipping\n" +" \n" +" on your next order \n" +" % endif\n" +" |
| \n"
+" Use this promo code\n"
+" % if object.expiration_date:\n"
+" before ${object.expiration_date}\n"
+" % endif\n"
+" \n" +" \n" +" ${object.code}\n" +" \n" +" \n" +" % if object.program_id.rule_min_quantity not in [0, 1]\n" +" \n" +" Minimum purchase of ${object.program_id.rule_min_quantity} products\n" +"\n" +" % endif\n" +" % if object.program_id.rule_minimum_amount != 0.00\n" +" \n" +" Valid for purchase above ${object.program_id.company_id.currency_id.symbol}${'%0.2f' % object.program_id.rule_minimum_amount |float}\n" +" \n" +" % endif\n" +" \n" +" Thank you,\n" +" \n" +" % if object.order_id.user_id:\n" +" ${object.order_id.user_id.signature | safe}\n" +" % endif\n" +" |
| \n"
+" % if object.partner_id.name:\n"
+" Congratulations ${object.partner_id.name}, \n" +" % endif\n" +"\n" +" Here is your reward from ${object.program_id.company_id.name}. \n" +"\n" +" % if object.program_id.reward_type == 'discount':\n" +" % if object.program_id.discount_type == 'fixed_amount':\n" +" \n" +" ${'%s' % format_amount(object.program_id.discount_fixed_amount, object.program_id.currency_id)}\n" +" \n" +" off on your next order \n" +" %else\n" +" \n" +" ${object.program_id.discount_percentage} %\n" +" \n" +" % if object.program_id.discount_apply_on == 'specific_product':\n" +" \n" +" ${'on %s' % object.program_id.discount_specific_product_id.name}\n" +" \n" +" % elif object.program_id.discount_apply_on == 'cheapest_product':\n" +" \n" +" off on the cheapest product\n" +" \n" +" % else\n" +" \n" +" off on your next order\n" +" \n" +" % endif\n" +" \n" +" % endif\n" +" % elif object.program_id.reward_type == 'product':\n" +" \n" +" ${'get %s free %s' % (object.program_id.reward_product_quantity, object.program_id.reward_product_id.name)}\n" +" \n" +" on your next order \n" +" % elif object.program_id.reward_type == 'free_shipping':\n" +" \n" +" get free shipping\n" +" \n" +" on your next order \n" +" % endif\n" +" |
| \n"
+" Use this promo code\n"
+" % if object.expiration_date:\n"
+" before ${object.expiration_date}\n"
+" % endif\n"
+" \n" +" \n" +" ${object.code}\n" +" \n" +" \n" +" % if object.program_id.rule_min_quantity not in [0, 1]\n" +" \n" +" Minimum purchase of ${object.program_id.rule_min_quantity} products\n" +"\n" +" % endif\n" +" % if object.program_id.rule_minimum_amount != 0.00\n" +" \n" +" Valid for purchase above ${object.program_id.company_id.currency_id.symbol}${'%0.2f' % object.program_id.rule_minimum_amount |float}\n" +" \n" +" % endif\n" +" \n" +" Thank you,\n" +" \n" +" % if object.order_id.user_id:\n" +" ${object.order_id.user_id.signature | safe}\n" +" % endif\n" +" |
| \n"
+" % if object.partner_id.name:\n"
+" Congratulations ${object.partner_id.name}, \n" +" % endif\n" +"\n" +" Here is your reward from ${object.program_id.company_id.name}. \n" +"\n" +" % if object.program_id.reward_type == 'discount':\n" +" % if object.program_id.discount_type == 'fixed_amount':\n" +" \n" +" ${'%s' % format_amount(object.program_id.discount_fixed_amount, object.program_id.currency_id)}\n" +" \n" +" off on your next order \n" +" %else\n" +" \n" +" ${object.program_id.discount_percentage} %\n" +" \n" +" % if object.program_id.discount_apply_on == 'specific_product':\n" +" \n" +" ${'on %s' % object.program_id.discount_specific_product_id.name}\n" +" \n" +" % elif object.program_id.discount_apply_on == 'cheapest_product':\n" +" \n" +" off on the cheapest product\n" +" \n" +" % else\n" +" \n" +" off on your next order\n" +" \n" +" % endif\n" +" \n" +" % endif\n" +" % elif object.program_id.reward_type == 'product':\n" +" \n" +" ${'get %s free %s' % (object.program_id.reward_product_quantity, object.program_id.reward_product_id.name)}\n" +" \n" +" on your next order \n" +" % elif object.program_id.reward_type == 'free_shipping':\n" +" \n" +" get free shipping\n" +" \n" +" on your next order \n" +" % endif\n" +" |
| \n"
+" Use this promo code\n"
+" % if object.expiration_date:\n"
+" before ${object.expiration_date}\n"
+" % endif\n"
+" \n" +" \n" +" ${object.code}\n" +" \n" +" \n" +" % if object.program_id.rule_min_quantity not in [0, 1]\n" +" \n" +" Minimum purchase of ${object.program_id.rule_min_quantity} products\n" +"\n" +" % endif\n" +" % if object.program_id.rule_minimum_amount != 0.00\n" +" \n" +" Valid for purchase above ${object.program_id.company_id.currency_id.symbol}${'%0.2f' % object.program_id.rule_minimum_amount |float}\n" +" \n" +" % endif\n" +" \n" +" Thank you,\n" +" \n" +" % if object.order_id.user_id:\n" +" ${object.order_id.user_id.signature | safe}\n" +" % endif\n" +" |
| \n"
+" % if object.partner_id.name:\n"
+" Congratulations ${object.partner_id.name}, \n" +" % endif\n" +"\n" +" Here is your reward from ${object.program_id.company_id.name}. \n" +"\n" +" % if object.program_id.reward_type == 'discount':\n" +" % if object.program_id.discount_type == 'fixed_amount':\n" +" \n" +" ${'%s' % format_amount(object.program_id.discount_fixed_amount, object.program_id.currency_id)}\n" +" \n" +" off on your next order \n" +" %else\n" +" \n" +" ${object.program_id.discount_percentage} %\n" +" \n" +" % if object.program_id.discount_apply_on == 'specific_product':\n" +" \n" +" ${'on %s' % object.program_id.discount_specific_product_id.name}\n" +" \n" +" % elif object.program_id.discount_apply_on == 'cheapest_product':\n" +" \n" +" off on the cheapest product\n" +" \n" +" % else\n" +" \n" +" off on your next order\n" +" \n" +" % endif\n" +" \n" +" % endif\n" +" % elif object.program_id.reward_type == 'product':\n" +" \n" +" ${'get %s free %s' % (object.program_id.reward_product_quantity, object.program_id.reward_product_id.name)}\n" +" \n" +" on your next order \n" +" % elif object.program_id.reward_type == 'free_shipping':\n" +" \n" +" get free shipping\n" +" \n" +" on your next order \n" +" % endif\n" +" |
| \n"
+" Use this promo code\n"
+" % if object.expiration_date:\n"
+" before ${object.expiration_date}\n"
+" % endif\n"
+" \n" +" \n" +" ${object.code}\n" +" \n" +" \n" +" % if object.program_id.rule_min_quantity not in [0, 1]\n" +" \n" +" Minimum purchase of ${object.program_id.rule_min_quantity} products\n" +"\n" +" % endif\n" +" % if object.program_id.rule_minimum_amount != 0.00\n" +" \n" +" Valid for purchase above ${object.program_id.company_id.currency_id.symbol}${'%0.2f' % object.program_id.rule_minimum_amount |float}\n" +" \n" +" % endif\n" +" \n" +" Thank you,\n" +" \n" +" % if object.order_id.user_id:\n" +" ${object.order_id.user_id.signature | safe}\n" +" % endif\n" +" |
| \n"
+" % if object.partner_id.name:\n"
+" Congratulations ${object.partner_id.name}, \n" +" % endif\n" +"\n" +" Here is your reward from ${object.program_id.company_id.name}. \n" +"\n" +" % if object.program_id.reward_type == 'discount':\n" +" % if object.program_id.discount_type == 'fixed_amount':\n" +" \n" +" ${'%s' % format_amount(object.program_id.discount_fixed_amount, object.program_id.currency_id)}\n" +" \n" +" off on your next order \n" +" %else\n" +" \n" +" ${object.program_id.discount_percentage} %\n" +" \n" +" % if object.program_id.discount_apply_on == 'specific_product':\n" +" \n" +" ${'on %s' % object.program_id.discount_specific_product_id.name}\n" +" \n" +" % elif object.program_id.discount_apply_on == 'cheapest_product':\n" +" \n" +" off on the cheapest product\n" +" \n" +" % else\n" +" \n" +" off on your next order\n" +" \n" +" % endif\n" +" \n" +" % endif\n" +" % elif object.program_id.reward_type == 'product':\n" +" \n" +" ${'get %s free %s' % (object.program_id.reward_product_quantity, object.program_id.reward_product_id.name)}\n" +" \n" +" on your next order \n" +" % elif object.program_id.reward_type == 'free_shipping':\n" +" \n" +" get free shipping\n" +" \n" +" on your next order \n" +" % endif\n" +" |
| \n"
+" Use this promo code\n"
+" % if object.expiration_date:\n"
+" before ${object.expiration_date}\n"
+" % endif\n"
+" \n" +" \n" +" ${object.code}\n" +" \n" +" \n" +" % if object.program_id.rule_min_quantity not in [0, 1]\n" +" \n" +" Minimum purchase of ${object.program_id.rule_min_quantity} products\n" +"\n" +" % endif\n" +" % if object.program_id.rule_minimum_amount != 0.00\n" +" \n" +" Valid for purchase above ${object.program_id.company_id.currency_id.symbol}${'%0.2f' % object.program_id.rule_minimum_amount |float}\n" +" \n" +" % endif\n" +" \n" +" Thank you,\n" +" \n" +" % if object.order_id.user_id:\n" +" ${object.order_id.user_id.signature | safe}\n" +" % endif\n" +" |
| \n"
+" % if object.partner_id.name:\n"
+" Congratulations ${object.partner_id.name}, \n" +" % endif\n" +"\n" +" Here is your reward from ${object.program_id.company_id.name}. \n" +"\n" +" % if object.program_id.reward_type == 'discount':\n" +" % if object.program_id.discount_type == 'fixed_amount':\n" +" \n" +" ${'%s' % format_amount(object.program_id.discount_fixed_amount, object.program_id.currency_id)}\n" +" \n" +" off on your next order \n" +" %else\n" +" \n" +" ${object.program_id.discount_percentage} %\n" +" \n" +" % if object.program_id.discount_apply_on == 'specific_product':\n" +" \n" +" ${'on %s' % object.program_id.discount_specific_product_id.name}\n" +" \n" +" % elif object.program_id.discount_apply_on == 'cheapest_product':\n" +" \n" +" off on the cheapest product\n" +" \n" +" % else\n" +" \n" +" off on your next order\n" +" \n" +" % endif\n" +" \n" +" % endif\n" +" % elif object.program_id.reward_type == 'product':\n" +" \n" +" ${'get %s free %s' % (object.program_id.reward_product_quantity, object.program_id.reward_product_id.name)}\n" +" \n" +" on your next order \n" +" % elif object.program_id.reward_type == 'free_shipping':\n" +" \n" +" get free shipping\n" +" \n" +" on your next order \n" +" % endif\n" +" |
| \n"
+" Use this promo code\n"
+" % if object.expiration_date:\n"
+" before ${object.expiration_date}\n"
+" % endif\n"
+" \n" +" \n" +" ${object.code}\n" +" \n" +" \n" +" % if object.program_id.rule_min_quantity not in [0, 1]\n" +" \n" +" Minimum purchase of ${object.program_id.rule_min_quantity} products\n" +"\n" +" % endif\n" +" % if object.program_id.rule_minimum_amount != 0.00\n" +" \n" +" Valid for purchase above ${object.program_id.company_id.currency_id.symbol}${'%0.2f' % object.program_id.rule_minimum_amount |float}\n" +" \n" +" % endif\n" +" \n" +" Thank you,\n" +" \n" +" % if object.order_id.user_id:\n" +" ${object.order_id.user_id.signature | safe}\n" +" % endif\n" +" |
| \n"
+" % if object.partner_id.name:\n"
+" Congratulations ${object.partner_id.name}, \n" +" % endif\n" +"\n" +" Here is your reward from ${object.program_id.company_id.name}. \n" +"\n" +" % if object.program_id.reward_type == 'discount':\n" +" % if object.program_id.discount_type == 'fixed_amount':\n" +" \n" +" ${'%s' % format_amount(object.program_id.discount_fixed_amount, object.program_id.currency_id)}\n" +" \n" +" off on your next order \n" +" %else\n" +" \n" +" ${object.program_id.discount_percentage} %\n" +" \n" +" % if object.program_id.discount_apply_on == 'specific_product':\n" +" \n" +" ${'on %s' % object.program_id.discount_specific_product_id.name}\n" +" \n" +" % elif object.program_id.discount_apply_on == 'cheapest_product':\n" +" \n" +" off on the cheapest product\n" +" \n" +" % else\n" +" \n" +" off on your next order\n" +" \n" +" % endif\n" +" \n" +" % endif\n" +" % elif object.program_id.reward_type == 'product':\n" +" \n" +" ${'get %s free %s' % (object.program_id.reward_product_quantity, object.program_id.reward_product_id.name)}\n" +" \n" +" on your next order \n" +" % elif object.program_id.reward_type == 'free_shipping':\n" +" \n" +" get free shipping\n" +" \n" +" on your next order \n" +" % endif\n" +" |
| \n"
+" Use this promo code\n"
+" % if object.expiration_date:\n"
+" before ${object.expiration_date}\n"
+" % endif\n"
+" \n" +" \n" +" ${object.code}\n" +" \n" +" \n" +" % if object.program_id.rule_min_quantity not in [0, 1]\n" +" \n" +" Minimum purchase of ${object.program_id.rule_min_quantity} products\n" +"\n" +" % endif\n" +" % if object.program_id.rule_minimum_amount != 0.00\n" +" \n" +" Valid for purchase above ${object.program_id.company_id.currency_id.symbol}${'%0.2f' % object.program_id.rule_minimum_amount |float}\n" +" \n" +" % endif\n" +" \n" +" Thank you,\n" +" \n" +" % if object.order_id.user_id:\n" +" ${object.order_id.user_id.signature | safe}\n" +" % endif\n" +" |
| \n"
+" % if object.partner_id.name:\n"
+" Congratulations ${object.partner_id.name}, \n" +" % endif\n" +"\n" +" Here is your reward from ${object.program_id.company_id.name}. \n" +"\n" +" % if object.program_id.reward_type == 'discount':\n" +" % if object.program_id.discount_type == 'fixed_amount':\n" +" \n" +" ${'%s' % format_amount(object.program_id.discount_fixed_amount, object.program_id.currency_id)}\n" +" \n" +" off on your next order \n" +" %else\n" +" \n" +" ${object.program_id.discount_percentage} %\n" +" \n" +" % if object.program_id.discount_apply_on == 'specific_product':\n" +" \n" +" ${'on %s' % object.program_id.discount_specific_product_id.name}\n" +" \n" +" % elif object.program_id.discount_apply_on == 'cheapest_product':\n" +" \n" +" off on the cheapest product\n" +" \n" +" % else\n" +" \n" +" off on your next order\n" +" \n" +" % endif\n" +" \n" +" % endif\n" +" % elif object.program_id.reward_type == 'product':\n" +" \n" +" ${'get %s free %s' % (object.program_id.reward_product_quantity, object.program_id.reward_product_id.name)}\n" +" \n" +" on your next order \n" +" % elif object.program_id.reward_type == 'free_shipping':\n" +" \n" +" get free shipping\n" +" \n" +" on your next order \n" +" % endif\n" +" |
| \n"
+" Use this promo code\n"
+" % if object.expiration_date:\n"
+" before ${object.expiration_date}\n"
+" % endif\n"
+" \n" +" \n" +" ${object.code}\n" +" \n" +" \n" +" % if object.program_id.rule_min_quantity not in [0, 1]\n" +" \n" +" Minimum purchase of ${object.program_id.rule_min_quantity} products\n" +"\n" +" % endif\n" +" % if object.program_id.rule_minimum_amount != 0.00\n" +" \n" +" Valid for purchase above ${object.program_id.company_id.currency_id.symbol}${'%0.2f' % object.program_id.rule_minimum_amount |float}\n" +" \n" +" % endif\n" +" \n" +" Thank you,\n" +" \n" +" % if object.order_id.user_id:\n" +" ${object.order_id.user_id.signature | safe}\n" +" % endif\n" +" |
| \n"
+" % if object.partner_id.name:\n"
+" Congratulations ${object.partner_id.name}, \n" +" % endif\n" +"\n" +" Here is your reward from ${object.program_id.company_id.name}. \n" +"\n" +" % if object.program_id.reward_type == 'discount':\n" +" % if object.program_id.discount_type == 'fixed_amount':\n" +" \n" +" ${'%s' % format_amount(object.program_id.discount_fixed_amount, object.program_id.currency_id)}\n" +" \n" +" off on your next order \n" +" %else\n" +" \n" +" ${object.program_id.discount_percentage} %\n" +" \n" +" % if object.program_id.discount_apply_on == 'specific_product':\n" +" \n" +" ${'on %s' % object.program_id.discount_specific_product_id.name}\n" +" \n" +" % elif object.program_id.discount_apply_on == 'cheapest_product':\n" +" \n" +" off on the cheapest product\n" +" \n" +" % else\n" +" \n" +" off on your next order\n" +" \n" +" % endif\n" +" \n" +" % endif\n" +" % elif object.program_id.reward_type == 'product':\n" +" \n" +" ${'get %s free %s' % (object.program_id.reward_product_quantity, object.program_id.reward_product_id.name)}\n" +" \n" +" on your next order \n" +" % elif object.program_id.reward_type == 'free_shipping':\n" +" \n" +" get free shipping\n" +" \n" +" on your next order \n" +" % endif\n" +" |
| \n"
+" Use this promo code\n"
+" % if object.expiration_date:\n"
+" before ${object.expiration_date}\n"
+" % endif\n"
+" \n" +" \n" +" ${object.code}\n" +" \n" +" \n" +" % if object.program_id.rule_min_quantity not in [0, 1]\n" +" \n" +" Minimum purchase of ${object.program_id.rule_min_quantity} products\n" +"\n" +" % endif\n" +" % if object.program_id.rule_minimum_amount != 0.00\n" +" \n" +" Valid for purchase above ${object.program_id.company_id.currency_id.symbol}${'%0.2f' % object.program_id.rule_minimum_amount |float}\n" +" \n" +" % endif\n" +" \n" +" Thank you,\n" +" \n" +" % if object.order_id.user_id:\n" +" ${object.order_id.user_id.signature | safe}\n" +" % endif\n" +" |
| \n"
+" % if object.partner_id.name:\n"
+" Congratulations ${object.partner_id.name}, \n" +" % endif\n" +"\n" +" Here is your reward from ${object.program_id.company_id.name}. \n" +"\n" +" % if object.program_id.reward_type == 'discount':\n" +" % if object.program_id.discount_type == 'fixed_amount':\n" +" \n" +" ${'%s' % format_amount(object.program_id.discount_fixed_amount, object.program_id.currency_id)}\n" +" \n" +" off on your next order \n" +" %else\n" +" \n" +" ${object.program_id.discount_percentage} %\n" +" \n" +" % if object.program_id.discount_apply_on == 'specific_product':\n" +" \n" +" ${'on %s' % object.program_id.discount_specific_product_id.name}\n" +" \n" +" % elif object.program_id.discount_apply_on == 'cheapest_product':\n" +" \n" +" off on the cheapest product\n" +" \n" +" % else\n" +" \n" +" off on your next order\n" +" \n" +" % endif\n" +" \n" +" % endif\n" +" % elif object.program_id.reward_type == 'product':\n" +" \n" +" ${'get %s free %s' % (object.program_id.reward_product_quantity, object.program_id.reward_product_id.name)}\n" +" \n" +" on your next order \n" +" % elif object.program_id.reward_type == 'free_shipping':\n" +" \n" +" get free shipping\n" +" \n" +" on your next order \n" +" % endif\n" +" |
| \n"
+" Use this promo code\n"
+" % if object.expiration_date:\n"
+" before ${object.expiration_date}\n"
+" % endif\n"
+" \n" +" \n" +" ${object.code}\n" +" \n" +" \n" +" % if object.program_id.rule_min_quantity not in [0, 1]\n" +" \n" +" Minimum purchase of ${object.program_id.rule_min_quantity} products\n" +"\n" +" % endif\n" +" % if object.program_id.rule_minimum_amount != 0.00\n" +" \n" +" Valid for purchase above ${object.program_id.company_id.currency_id.symbol}${'%0.2f' % object.program_id.rule_minimum_amount |float}\n" +" \n" +" % endif\n" +" \n" +" Thank you,\n" +" \n" +" % if object.order_id.user_id:\n" +" ${object.order_id.user_id.signature | safe}\n" +" % endif\n" +" |
| \n"
+" % if object.partner_id.name:\n"
+" Congratulations ${object.partner_id.name}, \n" +" % endif\n" +"\n" +" Here is your reward from ${object.program_id.company_id.name}. \n" +"\n" +" % if object.program_id.reward_type == 'discount':\n" +" % if object.program_id.discount_type == 'fixed_amount':\n" +" \n" +" ${'%s' % format_amount(object.program_id.discount_fixed_amount, object.program_id.currency_id)}\n" +" \n" +" off on your next order \n" +" %else\n" +" \n" +" ${object.program_id.discount_percentage} %\n" +" \n" +" % if object.program_id.discount_apply_on == 'specific_product':\n" +" \n" +" ${'on %s' % object.program_id.discount_specific_product_id.name}\n" +" \n" +" % elif object.program_id.discount_apply_on == 'cheapest_product':\n" +" \n" +" off on the cheapest product\n" +" \n" +" % else\n" +" \n" +" off on your next order\n" +" \n" +" % endif\n" +" \n" +" % endif\n" +" % elif object.program_id.reward_type == 'product':\n" +" \n" +" ${'get %s free %s' % (object.program_id.reward_product_quantity, object.program_id.reward_product_id.name)}\n" +" \n" +" on your next order \n" +" % elif object.program_id.reward_type == 'free_shipping':\n" +" \n" +" get free shipping\n" +" \n" +" on your next order \n" +" % endif\n" +" |
| \n"
+" Use this promo code\n"
+" % if object.expiration_date:\n"
+" before ${object.expiration_date}\n"
+" % endif\n"
+" \n" +" \n" +" ${object.code}\n" +" \n" +" \n" +" % if object.program_id.rule_min_quantity not in [0, 1]\n" +" \n" +" Minimum purchase of ${object.program_id.rule_min_quantity} products\n" +"\n" +" % endif\n" +" % if object.program_id.rule_minimum_amount != 0.00\n" +" \n" +" Valid for purchase above ${object.program_id.company_id.currency_id.symbol}${'%0.2f' % object.program_id.rule_minimum_amount |float}\n" +" \n" +" % endif\n" +" \n" +" Thank you,\n" +" \n" +" % if object.order_id.user_id:\n" +" ${object.order_id.user_id.signature | safe}\n" +" % endif\n" +" |
| \n"
+" % if object.partner_id.name:\n"
+" Congratulations ${object.partner_id.name}, \n" +" % endif\n" +"\n" +" Here is your reward from ${object.program_id.company_id.name}. \n" +"\n" +" % if object.program_id.reward_type == 'discount':\n" +" % if object.program_id.discount_type == 'fixed_amount':\n" +" \n" +" ${'%s' % format_amount(object.program_id.discount_fixed_amount, object.program_id.currency_id)}\n" +" \n" +" off on your next order \n" +" %else\n" +" \n" +" ${object.program_id.discount_percentage} %\n" +" \n" +" % if object.program_id.discount_apply_on == 'specific_product':\n" +" \n" +" ${'on %s' % object.program_id.discount_specific_product_id.name}\n" +" \n" +" % elif object.program_id.discount_apply_on == 'cheapest_product':\n" +" \n" +" off on the cheapest product\n" +" \n" +" % else\n" +" \n" +" off on your next order\n" +" \n" +" % endif\n" +" \n" +" % endif\n" +" % elif object.program_id.reward_type == 'product':\n" +" \n" +" ${'get %s free %s' % (object.program_id.reward_product_quantity, object.program_id.reward_product_id.name)}\n" +" \n" +" on your next order \n" +" % elif object.program_id.reward_type == 'free_shipping':\n" +" \n" +" get free shipping\n" +" \n" +" on your next order \n" +" % endif\n" +" |
| \n"
+" Use this promo code\n"
+" % if object.expiration_date:\n"
+" before ${object.expiration_date}\n"
+" % endif\n"
+" \n" +" \n" +" ${object.code}\n" +" \n" +" \n" +" % if object.program_id.rule_min_quantity not in [0, 1]\n" +" \n" +" Minimum purchase of ${object.program_id.rule_min_quantity} products\n" +"\n" +" % endif\n" +" % if object.program_id.rule_minimum_amount != 0.00\n" +" \n" +" Valid for purchase above ${object.program_id.company_id.currency_id.symbol}${'%0.2f' % object.program_id.rule_minimum_amount |float}\n" +" \n" +" % endif\n" +" \n" +" Thank you,\n" +" \n" +" % if object.order_id.user_id:\n" +" ${object.order_id.user_id.signature | safe}\n" +" % endif\n" +" |
| \n"
+" % if object.partner_id.name:\n"
+" Congratulations ${object.partner_id.name}, \n" +" % endif\n" +"\n" +" Here is your reward from ${object.program_id.company_id.name}. \n" +"\n" +" % if object.program_id.reward_type == 'discount':\n" +" % if object.program_id.discount_type == 'fixed_amount':\n" +" \n" +" ${'%s' % format_amount(object.program_id.discount_fixed_amount, object.program_id.currency_id)}\n" +" \n" +" off on your next order \n" +" %else\n" +" \n" +" ${object.program_id.discount_percentage} %\n" +" \n" +" % if object.program_id.discount_apply_on == 'specific_product':\n" +" \n" +" ${'on %s' % object.program_id.discount_specific_product_id.name}\n" +" \n" +" % elif object.program_id.discount_apply_on == 'cheapest_product':\n" +" \n" +" off on the cheapest product\n" +" \n" +" % else\n" +" \n" +" off on your next order\n" +" \n" +" % endif\n" +" \n" +" % endif\n" +" % elif object.program_id.reward_type == 'product':\n" +" \n" +" ${'get %s free %s' % (object.program_id.reward_product_quantity, object.program_id.reward_product_id.name)}\n" +" \n" +" on your next order \n" +" % elif object.program_id.reward_type == 'free_shipping':\n" +" \n" +" get free shipping\n" +" \n" +" on your next order \n" +" % endif\n" +" |
| \n"
+" Use this promo code\n"
+" % if object.expiration_date:\n"
+" before ${object.expiration_date}\n"
+" % endif\n"
+" \n" +" \n" +" ${object.code}\n" +" \n" +" \n" +" % if object.program_id.rule_min_quantity not in [0, 1]\n" +" \n" +" Minimum purchase of ${object.program_id.rule_min_quantity} products\n" +"\n" +" % endif\n" +" % if object.program_id.rule_minimum_amount != 0.00\n" +" \n" +" Valid for purchase above ${object.program_id.company_id.currency_id.symbol}${'%0.2f' % object.program_id.rule_minimum_amount |float}\n" +" \n" +" % endif\n" +" \n" +" Thank you,\n" +" \n" +" % if object.order_id.user_id:\n" +" ${object.order_id.user_id.signature | safe}\n" +" % endif\n" +" |
| \n"
+" % if object.partner_id.name:\n"
+" Congratulations ${object.partner_id.name}, \n" +" % endif\n" +"\n" +" Here is your reward from ${object.program_id.company_id.name}. \n" +"\n" +" % if object.program_id.reward_type == 'discount':\n" +" % if object.program_id.discount_type == 'fixed_amount':\n" +" \n" +" ${'%s' % format_amount(object.program_id.discount_fixed_amount, object.program_id.currency_id)}\n" +" \n" +" off on your next order \n" +" %else\n" +" \n" +" ${object.program_id.discount_percentage} %\n" +" \n" +" % if object.program_id.discount_apply_on == 'specific_product':\n" +" \n" +" ${'on %s' % object.program_id.discount_specific_product_id.name}\n" +" \n" +" % elif object.program_id.discount_apply_on == 'cheapest_product':\n" +" \n" +" off on the cheapest product\n" +" \n" +" % else\n" +" \n" +" off on your next order\n" +" \n" +" % endif\n" +" \n" +" % endif\n" +" % elif object.program_id.reward_type == 'product':\n" +" \n" +" ${'get %s free %s' % (object.program_id.reward_product_quantity, object.program_id.reward_product_id.name)}\n" +" \n" +" on your next order \n" +" % elif object.program_id.reward_type == 'free_shipping':\n" +" \n" +" get free shipping\n" +" \n" +" on your next order \n" +" % endif\n" +" |
| \n"
+" Use this promo code\n"
+" % if object.expiration_date:\n"
+" before ${object.expiration_date}\n"
+" % endif\n"
+" \n" +" \n" +" ${object.code}\n" +" \n" +" \n" +" % if object.program_id.rule_min_quantity not in [0, 1]\n" +" \n" +" Minimum purchase of ${object.program_id.rule_min_quantity} products\n" +"\n" +" % endif\n" +" % if object.program_id.rule_minimum_amount != 0.00\n" +" \n" +" Valid for purchase above ${object.program_id.company_id.currency_id.symbol}${'%0.2f' % object.program_id.rule_minimum_amount |float}\n" +" \n" +" % endif\n" +" \n" +" Thank you,\n" +" \n" +" % if object.order_id.user_id:\n" +" ${object.order_id.user_id.signature | safe}\n" +" % endif\n" +" |
| \n"
+" % if object.partner_id.name:\n"
+" Congratulations ${object.partner_id.name}, \n" +" % endif\n" +"\n" +" Here is your reward from ${object.program_id.company_id.name}. \n" +"\n" +" % if object.program_id.reward_type == 'discount':\n" +" % if object.program_id.discount_type == 'fixed_amount':\n" +" \n" +" ${'%s' % format_amount(object.program_id.discount_fixed_amount, object.program_id.currency_id)}\n" +" \n" +" off on your next order \n" +" %else\n" +" \n" +" ${object.program_id.discount_percentage} %\n" +" \n" +" % if object.program_id.discount_apply_on == 'specific_product':\n" +" \n" +" ${'on %s' % object.program_id.discount_specific_product_id.name}\n" +" \n" +" % elif object.program_id.discount_apply_on == 'cheapest_product':\n" +" \n" +" off on the cheapest product\n" +" \n" +" % else\n" +" \n" +" off on your next order\n" +" \n" +" % endif\n" +" \n" +" % endif\n" +" % elif object.program_id.reward_type == 'product':\n" +" \n" +" ${'get %s free %s' % (object.program_id.reward_product_quantity, object.program_id.reward_product_id.name)}\n" +" \n" +" on your next order \n" +" % elif object.program_id.reward_type == 'free_shipping':\n" +" \n" +" get free shipping\n" +" \n" +" on your next order \n" +" % endif\n" +" |
| \n"
+" Use this promo code\n"
+" % if object.expiration_date:\n"
+" before ${object.expiration_date}\n"
+" % endif\n"
+" \n" +" \n" +" ${object.code}\n" +" \n" +" \n" +" % if object.program_id.rule_min_quantity not in [0, 1]\n" +" \n" +" Minimum purchase of ${object.program_id.rule_min_quantity} products\n" +"\n" +" % endif\n" +" % if object.program_id.rule_minimum_amount != 0.00\n" +" \n" +" Valid for purchase above ${object.program_id.company_id.currency_id.symbol}${'%0.2f' % object.program_id.rule_minimum_amount |float}\n" +" \n" +" % endif\n" +" \n" +" Thank you,\n" +" \n" +" % if object.order_id.user_id:\n" +" ${object.order_id.user_id.signature | safe}\n" +" % endif\n" +" |
| \n"
+" % if object.partner_id.name:\n"
+" Congratulations ${object.partner_id.name}, \n" +" % endif\n" +"\n" +" Here is your reward from ${object.program_id.company_id.name}. \n" +"\n" +" % if object.program_id.reward_type == 'discount':\n" +" % if object.program_id.discount_type == 'fixed_amount':\n" +" \n" +" ${'%s' % format_amount(object.program_id.discount_fixed_amount, object.program_id.currency_id)}\n" +" \n" +" off on your next order \n" +" %else\n" +" \n" +" ${object.program_id.discount_percentage} %\n" +" \n" +" % if object.program_id.discount_apply_on == 'specific_product':\n" +" \n" +" ${'on %s' % object.program_id.discount_specific_product_id.name}\n" +" \n" +" % elif object.program_id.discount_apply_on == 'cheapest_product':\n" +" \n" +" off on the cheapest product\n" +" \n" +" % else\n" +" \n" +" off on your next order\n" +" \n" +" % endif\n" +" \n" +" % endif\n" +" % elif object.program_id.reward_type == 'product':\n" +" \n" +" ${'get %s free %s' % (object.program_id.reward_product_quantity, object.program_id.reward_product_id.name)}\n" +" \n" +" on your next order \n" +" % elif object.program_id.reward_type == 'free_shipping':\n" +" \n" +" get free shipping\n" +" \n" +" on your next order \n" +" % endif\n" +" |
| \n"
+" Use this promo code\n"
+" % if object.expiration_date:\n"
+" before ${object.expiration_date}\n"
+" % endif\n"
+" \n" +" \n" +" ${object.code}\n" +" \n" +" \n" +" % if object.program_id.rule_min_quantity not in [0, 1]\n" +" \n" +" Minimum purchase of ${object.program_id.rule_min_quantity} products\n" +"\n" +" % endif\n" +" % if object.program_id.rule_minimum_amount != 0.00\n" +" \n" +" Valid for purchase above ${object.program_id.company_id.currency_id.symbol}${'%0.2f' % object.program_id.rule_minimum_amount |float}\n" +" \n" +" % endif\n" +" \n" +" Thank you,\n" +" \n" +" % if object.order_id.user_id:\n" +" ${object.order_id.user_id.signature | safe}\n" +" % endif\n" +" |
| \n"
+" % if object.partner_id.name:\n"
+" Congratulations ${object.partner_id.name}, \n" +" % endif\n" +"\n" +" Here is your reward from ${object.program_id.company_id.name}. \n" +"\n" +" % if object.program_id.reward_type == 'discount':\n" +" % if object.program_id.discount_type == 'fixed_amount':\n" +" \n" +" ${'%s' % format_amount(object.program_id.discount_fixed_amount, object.program_id.currency_id)}\n" +" \n" +" off on your next order \n" +" %else\n" +" \n" +" ${object.program_id.discount_percentage} %\n" +" \n" +" % if object.program_id.discount_apply_on == 'specific_product':\n" +" \n" +" ${'on %s' % object.program_id.discount_specific_product_id.name}\n" +" \n" +" % elif object.program_id.discount_apply_on == 'cheapest_product':\n" +" \n" +" off on the cheapest product\n" +" \n" +" % else\n" +" \n" +" off on your next order\n" +" \n" +" % endif\n" +" \n" +" % endif\n" +" % elif object.program_id.reward_type == 'product':\n" +" \n" +" ${'get %s free %s' % (object.program_id.reward_product_quantity, object.program_id.reward_product_id.name)}\n" +" \n" +" on your next order \n" +" % elif object.program_id.reward_type == 'free_shipping':\n" +" \n" +" get free shipping\n" +" \n" +" on your next order \n" +" % endif\n" +" |
| \n"
+" Use this promo code\n"
+" % if object.expiration_date:\n"
+" before ${object.expiration_date}\n"
+" % endif\n"
+" \n" +" \n" +" ${object.code}\n" +" \n" +" \n" +" % if object.program_id.rule_min_quantity not in [0, 1]\n" +" \n" +" Minimum purchase of ${object.program_id.rule_min_quantity} products\n" +"\n" +" % endif\n" +" % if object.program_id.rule_minimum_amount != 0.00\n" +" \n" +" Valid for purchase above ${object.program_id.company_id.currency_id.symbol}${'%0.2f' % object.program_id.rule_minimum_amount |float}\n" +" \n" +" % endif\n" +" \n" +" Thank you,\n" +" \n" +" % if object.order_id.user_id:\n" +" ${object.order_id.user_id.signature | safe}\n" +" % endif\n" +" |
| \n"
+" % if object.partner_id.name:\n"
+" Congratulations ${object.partner_id.name}, \n" +" % endif\n" +"\n" +" Here is your reward from ${object.program_id.company_id.name}. \n" +"\n" +" % if object.program_id.reward_type == 'discount':\n" +" % if object.program_id.discount_type == 'fixed_amount':\n" +" \n" +" ${'%s' % format_amount(object.program_id.discount_fixed_amount, object.program_id.currency_id)}\n" +" \n" +" off on your next order \n" +" %else\n" +" \n" +" ${object.program_id.discount_percentage} %\n" +" \n" +" % if object.program_id.discount_apply_on == 'specific_product':\n" +" \n" +" ${'on %s' % object.program_id.discount_specific_product_id.name}\n" +" \n" +" % elif object.program_id.discount_apply_on == 'cheapest_product':\n" +" \n" +" off on the cheapest product\n" +" \n" +" % else\n" +" \n" +" off on your next order\n" +" \n" +" % endif\n" +" \n" +" % endif\n" +" % elif object.program_id.reward_type == 'product':\n" +" \n" +" ${'get %s free %s' % (object.program_id.reward_product_quantity, object.program_id.reward_product_id.name)}\n" +" \n" +" on your next order \n" +" % elif object.program_id.reward_type == 'free_shipping':\n" +" \n" +" get free shipping\n" +" \n" +" on your next order \n" +" % endif\n" +" |
| \n"
+" Use this promo code\n"
+" % if object.expiration_date:\n"
+" before ${object.expiration_date}\n"
+" % endif\n"
+" \n" +" \n" +" ${object.code}\n" +" \n" +" \n" +" % if object.program_id.rule_min_quantity not in [0, 1]\n" +" \n" +" Minimum purchase of ${object.program_id.rule_min_quantity} products\n" +"\n" +" % endif\n" +" % if object.program_id.rule_minimum_amount != 0.00\n" +" \n" +" Valid for purchase above ${object.program_id.company_id.currency_id.symbol}${'%0.2f' % object.program_id.rule_minimum_amount |float}\n" +" \n" +" % endif\n" +" \n" +" Thank you,\n" +" \n" +" % if object.order_id.user_id:\n" +" ${object.order_id.user_id.signature | safe}\n" +" % endif\n" +" |
| \n"
+" % if object.partner_id.name:\n"
+" Congratulazioni ${object.partner_id.name}, \n" +" % endif\n" +"\n" +" Ecco il tuo premio per l'azienda ${object.program_id.company_id.name}. \n" +"\n" +" % if object.program_id.reward_type == 'discount':\n" +" % if object.program_id.discount_type == 'fixed_amount':\n" +" \n" +" ${'%s' % format_amount(object.program_id.discount_fixed_amount, object.program_id.currency_id)}\n" +" \n" +" sul tuo prossimo ordine \n" +" %else\n" +" \n" +" ${object.program_id.discount_percentage} %\n" +" \n" +" % if object.program_id.discount_apply_on == 'specific_product':\n" +" \n" +" ${'on %s' % object.program_id.discount_specific_product_id.name}\n" +" \n" +" % elif object.program_id.discount_apply_on == 'cheapest_product':\n" +" \n" +" sul prodotto più économico\n" +" \n" +" % else\n" +" \n" +" sul tuo prossimo ordine\n" +" \n" +" % endif\n" +" \n" +" % endif\n" +" % elif object.program_id.reward_type == 'product':\n" +" \n" +" ${'get %s free %s' % (object.program_id.reward_product_quantity, object.program_id.reward_product_id.name)}\n" +" \n" +" sul tuo prossimo ordine \n" +" % elif object.program_id.reward_type == 'free_shipping':\n" +" \n" +" beneficia della consegna gratuita\n" +" \n" +" sul tuo prossimo ordine \n" +" % endif\n" +" |
| \n"
+" Usa questo codice promo\n"
+" % if object.expiration_date:\n"
+" prima il ${object.expiration_date}\n"
+" % endif\n"
+" \n" +" \n" +" ${object.code}\n" +" \n" +" \n" +" % if object.program_id.rule_min_quantity not in [0, 1]\n" +" \n" +" Acquisto minimo di ${object.program_id.rule_min_quantity} prodotti\n" +"\n" +" % endif\n" +" % if object.program_id.rule_minimum_amount != 0.00\n" +" \n" +" Valido per acquisto sopra ${object.program_id.company_id.currency_id.symbol}${'%0.2f' % object.program_id.rule_minimum_amount |float}\n" +" \n" +" % endif\n" +" \n" +" Grazie,\n" +" \n" +" % if object.order_id.user_id:\n" +" ${object.order_id.user_id.signature | safe}\n" +" % endif\n" +" |
| \n"
+" % if object.partner_id.name:\n"
+" Congratulations ${object.partner_id.name}, \n" +" % endif\n" +"\n" +" Here is your reward from ${object.program_id.company_id.name}. \n" +"\n" +" % if object.program_id.reward_type == 'discount':\n" +" % if object.program_id.discount_type == 'fixed_amount':\n" +" \n" +" ${'%s' % format_amount(object.program_id.discount_fixed_amount, object.program_id.currency_id)}\n" +" \n" +" off on your next order \n" +" %else\n" +" \n" +" ${object.program_id.discount_percentage} %\n" +" \n" +" % if object.program_id.discount_apply_on == 'specific_product':\n" +" \n" +" ${'on %s' % object.program_id.discount_specific_product_id.name}\n" +" \n" +" % elif object.program_id.discount_apply_on == 'cheapest_product':\n" +" \n" +" off on the cheapest product\n" +" \n" +" % else\n" +" \n" +" off on your next order\n" +" \n" +" % endif\n" +" \n" +" % endif\n" +" % elif object.program_id.reward_type == 'product':\n" +" \n" +" ${'get %s free %s' % (object.program_id.reward_product_quantity, object.program_id.reward_product_id.name)}\n" +" \n" +" on your next order \n" +" % elif object.program_id.reward_type == 'free_shipping':\n" +" \n" +" get free shipping\n" +" \n" +" on your next order \n" +" % endif\n" +" |
| \n"
+" Use this promo code\n"
+" % if object.expiration_date:\n"
+" before ${object.expiration_date}\n"
+" % endif\n"
+" \n" +" \n" +" ${object.code}\n" +" \n" +" \n" +" % if object.program_id.rule_min_quantity not in [0, 1]\n" +" \n" +" Minimum purchase of ${object.program_id.rule_min_quantity} products\n" +"\n" +" % endif\n" +" % if object.program_id.rule_minimum_amount != 0.00\n" +" \n" +" Valid for purchase above ${object.program_id.company_id.currency_id.symbol}${'%0.2f' % object.program_id.rule_minimum_amount |float}\n" +" \n" +" % endif\n" +" \n" +" Thank you,\n" +" \n" +" % if object.order_id.user_id:\n" +" ${object.order_id.user_id.signature | safe}\n" +" % endif\n" +" |
| \n"
+" % if object.partner_id.name:\n"
+" Congratulations ${object.partner_id.name}, \n" +" % endif\n" +"\n" +" Here is your reward from ${object.program_id.company_id.name}. \n" +"\n" +" % if object.program_id.reward_type == 'discount':\n" +" % if object.program_id.discount_type == 'fixed_amount':\n" +" \n" +" ${'%s' % format_amount(object.program_id.discount_fixed_amount, object.program_id.currency_id)}\n" +" \n" +" off on your next order \n" +" %else\n" +" \n" +" ${object.program_id.discount_percentage} %\n" +" \n" +" % if object.program_id.discount_apply_on == 'specific_product':\n" +" \n" +" ${'on %s' % object.program_id.discount_specific_product_id.name}\n" +" \n" +" % elif object.program_id.discount_apply_on == 'cheapest_product':\n" +" \n" +" off on the cheapest product\n" +" \n" +" % else\n" +" \n" +" off on your next order\n" +" \n" +" % endif\n" +" \n" +" % endif\n" +" % elif object.program_id.reward_type == 'product':\n" +" \n" +" ${'get %s free %s' % (object.program_id.reward_product_quantity, object.program_id.reward_product_id.name)}\n" +" \n" +" on your next order \n" +" % elif object.program_id.reward_type == 'free_shipping':\n" +" \n" +" get free shipping\n" +" \n" +" on your next order \n" +" % endif\n" +" |
| \n"
+" Use this promo code\n"
+" % if object.expiration_date:\n"
+" before ${object.expiration_date}\n"
+" % endif\n"
+" \n" +" \n" +" ${object.code}\n" +" \n" +" \n" +" % if object.program_id.rule_min_quantity not in [0, 1]\n" +" \n" +" Minimum purchase of ${object.program_id.rule_min_quantity} products\n" +"\n" +" % endif\n" +" % if object.program_id.rule_minimum_amount != 0.00\n" +" \n" +" Valid for purchase above ${object.program_id.company_id.currency_id.symbol}${'%0.2f' % object.program_id.rule_minimum_amount |float}\n" +" \n" +" % endif\n" +" \n" +" Thank you,\n" +" \n" +" % if object.order_id.user_id:\n" +" ${object.order_id.user_id.signature | safe}\n" +" % endif\n" +" |
| \n"
+" % if object.partner_id.name:\n"
+" Congratulations ${object.partner_id.name}, \n" +" % endif\n" +"\n" +" Here is your reward from ${object.program_id.company_id.name}. \n" +"\n" +" % if object.program_id.reward_type == 'discount':\n" +" % if object.program_id.discount_type == 'fixed_amount':\n" +" \n" +" ${'%s' % format_amount(object.program_id.discount_fixed_amount, object.program_id.currency_id)}\n" +" \n" +" off on your next order \n" +" %else\n" +" \n" +" ${object.program_id.discount_percentage} %\n" +" \n" +" % if object.program_id.discount_apply_on == 'specific_product':\n" +" \n" +" ${'on %s' % object.program_id.discount_specific_product_id.name}\n" +" \n" +" % elif object.program_id.discount_apply_on == 'cheapest_product':\n" +" \n" +" off on the cheapest product\n" +" \n" +" % else\n" +" \n" +" off on your next order\n" +" \n" +" % endif\n" +" \n" +" % endif\n" +" % elif object.program_id.reward_type == 'product':\n" +" \n" +" ${'get %s free %s' % (object.program_id.reward_product_quantity, object.program_id.reward_product_id.name)}\n" +" \n" +" on your next order \n" +" % elif object.program_id.reward_type == 'free_shipping':\n" +" \n" +" get free shipping\n" +" \n" +" on your next order \n" +" % endif\n" +" |
| \n"
+" Use this promo code\n"
+" % if object.expiration_date:\n"
+" before ${object.expiration_date}\n"
+" % endif\n"
+" \n" +" \n" +" ${object.code}\n" +" \n" +" \n" +" % if object.program_id.rule_min_quantity not in [0, 1]\n" +" \n" +" Minimum purchase of ${object.program_id.rule_min_quantity} products\n" +"\n" +" % endif\n" +" % if object.program_id.rule_minimum_amount != 0.00\n" +" \n" +" Valid for purchase above ${object.program_id.company_id.currency_id.symbol}${'%0.2f' % object.program_id.rule_minimum_amount |float}\n" +" \n" +" % endif\n" +" \n" +" Thank you,\n" +" \n" +" % if object.order_id.user_id:\n" +" ${object.order_id.user_id.signature | safe}\n" +" % endif\n" +" |
| \n"
+" % if object.partner_id.name:\n"
+" Congratulations ${object.partner_id.name}, \n" +" % endif\n" +"\n" +" Here is your reward from ${object.program_id.company_id.name}. \n" +"\n" +" % if object.program_id.reward_type == 'discount':\n" +" % if object.program_id.discount_type == 'fixed_amount':\n" +" \n" +" ${'%s' % format_amount(object.program_id.discount_fixed_amount, object.program_id.currency_id)}\n" +" \n" +" off on your next order \n" +" %else\n" +" \n" +" ${object.program_id.discount_percentage} %\n" +" \n" +" % if object.program_id.discount_apply_on == 'specific_product':\n" +" \n" +" ${'on %s' % object.program_id.discount_specific_product_id.name}\n" +" \n" +" % elif object.program_id.discount_apply_on == 'cheapest_product':\n" +" \n" +" off on the cheapest product\n" +" \n" +" % else\n" +" \n" +" off on your next order\n" +" \n" +" % endif\n" +" \n" +" % endif\n" +" % elif object.program_id.reward_type == 'product':\n" +" \n" +" ${'get %s free %s' % (object.program_id.reward_product_quantity, object.program_id.reward_product_id.name)}\n" +" \n" +" on your next order \n" +" % elif object.program_id.reward_type == 'free_shipping':\n" +" \n" +" get free shipping\n" +" \n" +" on your next order \n" +" % endif\n" +" |
| \n"
+" Use this promo code\n"
+" % if object.expiration_date:\n"
+" before ${object.expiration_date}\n"
+" % endif\n"
+" \n" +" \n" +" ${object.code}\n" +" \n" +" \n" +" % if object.program_id.rule_min_quantity not in [0, 1]\n" +" \n" +" Minimum purchase of ${object.program_id.rule_min_quantity} products\n" +"\n" +" % endif\n" +" % if object.program_id.rule_minimum_amount != 0.00\n" +" \n" +" Valid for purchase above ${object.program_id.company_id.currency_id.symbol}${'%0.2f' % object.program_id.rule_minimum_amount |float}\n" +" \n" +" % endif\n" +" \n" +" Thank you,\n" +" \n" +" % if object.order_id.user_id:\n" +" ${object.order_id.user_id.signature | safe}\n" +" % endif\n" +" |
| \n"
+" % if object.partner_id.name:\n"
+" Congratulations ${object.partner_id.name}, \n" +" % endif\n" +"\n" +" Here is your reward from ${object.program_id.company_id.name}. \n" +"\n" +" % if object.program_id.reward_type == 'discount':\n" +" % if object.program_id.discount_type == 'fixed_amount':\n" +" \n" +" ${'%s' % format_amount(object.program_id.discount_fixed_amount, object.program_id.currency_id)}\n" +" \n" +" off on your next order \n" +" %else\n" +" \n" +" ${object.program_id.discount_percentage} %\n" +" \n" +" % if object.program_id.discount_apply_on == 'specific_product':\n" +" \n" +" ${'on %s' % object.program_id.discount_specific_product_id.name}\n" +" \n" +" % elif object.program_id.discount_apply_on == 'cheapest_product':\n" +" \n" +" off on the cheapest product\n" +" \n" +" % else\n" +" \n" +" off on your next order\n" +" \n" +" % endif\n" +" \n" +" % endif\n" +" % elif object.program_id.reward_type == 'product':\n" +" \n" +" ${'get %s free %s' % (object.program_id.reward_product_quantity, object.program_id.reward_product_id.name)}\n" +" \n" +" on your next order \n" +" % elif object.program_id.reward_type == 'free_shipping':\n" +" \n" +" get free shipping\n" +" \n" +" on your next order \n" +" % endif\n" +" |
| \n"
+" Use this promo code\n"
+" % if object.expiration_date:\n"
+" before ${object.expiration_date}\n"
+" % endif\n"
+" \n" +" \n" +" ${object.code}\n" +" \n" +" \n" +" % if object.program_id.rule_min_quantity not in [0, 1]\n" +" \n" +" Minimum purchase of ${object.program_id.rule_min_quantity} products\n" +"\n" +" % endif\n" +" % if object.program_id.rule_minimum_amount != 0.00\n" +" \n" +" Valid for purchase above ${object.program_id.company_id.currency_id.symbol}${'%0.2f' % object.program_id.rule_minimum_amount |float}\n" +" \n" +" % endif\n" +" \n" +" Thank you,\n" +" \n" +" % if object.order_id.user_id:\n" +" ${object.order_id.user_id.signature | safe}\n" +" % endif\n" +" |