summaryrefslogtreecommitdiff
path: root/tests/test_program_rules.py
diff options
context:
space:
mode:
authorRomain Derie <rde@odoo.com>2018-05-16 15:19:14 +0200
committerRomain Derie <rde@odoo.com>2018-09-13 15:16:57 +0200
commit5ff0b842dfdc9ed1eefcb2638fb638084e1b1577 (patch)
tree048c18c3e0f2fcba367148d911379e6d3e213dfd /tests/test_program_rules.py
parent453d8ce703d88d535edc82fe01c0891ee5db1197 (diff)
[FIX] sale_coupon: delete 'sibling' lines when deleting a reward line
A discount on products with different taxes will result in as many discount lines as there is different taxes. Before this commit, removing one of these lines would not do anything else. Then, recomputing the coupon would regenerate/add back this line. On e-commerce, it means you would never be able to remove the program by deleting its reward lines if there are multiple taxes (and so multiple lines) since it would `recompute_coupon_lines` right away, adding it back directly. Now, this commit will ensure that removing one of these lines will also remove the other ones coming from this program on other taxes. It means removing a regular product will remove it's reward line that will also now remove the other program's discount line on other taxes and ultimately will remove the program from the SO since all the program reward lines got removed. (It won't affect auto applied program since it will be regenerated afterward) task-1866977 Related to #2224
Diffstat (limited to 'tests/test_program_rules.py')
0 files changed, 0 insertions, 0 deletions