summaryrefslogtreecommitdiff
path: root/tests/test_program_rules.py
diff options
context:
space:
mode:
authorRomain Derie <rde@odoo.com>2018-09-11 17:22:54 +0200
committerRomain Derie <rde@odoo.com>2018-09-13 15:21:51 +0200
commit85c89c300aba1936cb032e9c89a6a58f6d9577ef (patch)
treead04c21aa9608751c0269a48435a92c017ec70c3 /tests/test_program_rules.py
parent452e90639668288665818a8767258a68a4098dc6 (diff)
[FIX] sale_coupon: dont show strikethrough if pricelist show discount
Using a pricelist set as `without_discount` will show a strikethrough price on reward line (discount and free product). This is happening because the program reward line (discount_line_product_id) is created with the default 1$ price as this price is not usefull when computing coupons. Only the line price is checked. Now, we create a reward line with a -1 000 000$ price to prevent this UI behavior. Step to reproduce: - Activate pricelist (Sales>Config>Settings>Pricelist formulas) - Activate discounts in Sales Configuration (Manual discount on order lines) - Set pricelist to 'Show public price & discount to the customer' - Add a discount in your cart - There in a strikethrough price of $1 above the discount line price task-1878245
Diffstat (limited to 'tests/test_program_rules.py')
0 files changed, 0 insertions, 0 deletions