Introduces 2 new concepts: Promotion programs: =================== Using promotion programs allows you to propose to your customers: - Promotional offers limited in time or a limited order number. - Public code printed in advertisements, magasines, etc. - Specific offers based on a customers group or a product set. - A combination of the preceeding points. You may choose to apply the program reward immediately on the sales order or to propose the reward for a next order. In the second case a coupon will be generated at the order confirmation for the customer to use it later. Coupon programs: ================ Using coupon programs allows you to propose to your customers: - Free products or discounts if some conditions on products or purchased amount are met. - Promotional offers limited in time. - Generate coupons for a customers group. - Specific offers based on a customers group or a product set. - A combination of the preceeding points. A coupon is applied by entering a valid code if the program rules are met and if the reward is already in the order lines.
27 lines
1.0 KiB
XML
27 lines
1.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="sale_coupon_apply_code_view_form" model="ir.ui.view">
|
|
<field name="name">sale.coupon.apply.code.form</field>
|
|
<field name="model">sale.coupon.apply.code</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Apply coupon">
|
|
<group>
|
|
<field name="coupon_code"/>
|
|
</group>
|
|
<footer>
|
|
<button name="process_coupon" string="Apply Coupon" type="object" class="oe_highlight"/>
|
|
<button special="cancel" string="Cancel"/>
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="sale_coupon_apply_code_action" model="ir.actions.act_window">
|
|
<field name="name">Enter Coupon Code</field>
|
|
<field name="res_model">sale.coupon.apply.code</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="target">new</field>
|
|
<field name="view_id" ref="sale_coupon_apply_code_view_form"/>
|
|
</record>
|
|
</odoo>
|