summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorYannick Tivisse <yti@odoo.com>2017-02-24 10:56:16 +0100
committerYannick Tivisse <yti@odoo.com>2017-02-24 11:01:23 +0100
commite93293a856542e30b5369677822e2e18a58cadeb (patch)
tree776ef49926b599b1c08b7778d72ae2f40c96c40a /addons/web/static/src/js/views/basic/basic_controller.js
parent1abba847efad3349d75517444ab18999d89da24f (diff)
[FIX] website_sale_coupon: Merge the price coupon code and sale coupon code boxes
On the ecommerce, we may activate an option that allows a user to enter a coupon code related to a pricelist. On the website_sale_coupon module, we are also able to enter a code to activate a reward related to a program. Theses 2 boxes may appear on the same page. This commit merges the 2 boxes into a single one. When a coupon is entered, it will - Check if a coupon program or a promotion program is linked to this code - If yes, it applied the reward accordingly - If not, it will check if a pricelist is linked to this coupon code - If yes, it will modify the prices accordingly - If not, it will display a warning to explain that the code is invalid
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions