diff options
| author | Romain Derie <rde@odoo.com> | 2018-11-12 15:24:24 +0100 |
|---|---|---|
| committer | Romain Derie <rde@odoo.com> | 2018-11-15 15:57:12 +0100 |
| commit | 231669e33269257d1539c9a1f13189a332dda668 (patch) | |
| tree | f8deab69e4877ecb22550c898bb5991cc650a761 /tests/test_program_with_code_operations.py | |
| parent | 5a75d1aeae77c6bfb3ee1ba86115e46777b76bbf (diff) | |
[FIX] sale_coupon: remove coupon_program reward if req. not met anymore
Before this commit:
If a reward had been given on the SO with a coupon_program code and that the
program had requirements and that these requirements are not met anymore,
recomputing the SO would not remove the reward.
Now:
If the SO does not met the program requirements anymore, we remove the reward
Step to reproduce:
- Create a coupon_program with quantity or amount requirements (eg: $200)
- Generate a coupon for that program
- Add $200 worth of products (matching the program domain) in the SO
- Add the generated coupon to that SO
- You should get the reward as you have $200 in the SO
- Remove some products from the SO to go below $200
- Recompute coupons, the reward won't be removed
Closes #3062
Diffstat (limited to 'tests/test_program_with_code_operations.py')
0 files changed, 0 insertions, 0 deletions
