diff options
| author | Romain Derie <rde@odoo.com> | 2018-11-09 14:44:28 +0100 |
|---|---|---|
| committer | Romain Derie <rde@odoo.com> | 2018-11-15 15:57:06 +0100 |
| commit | 5a75d1aeae77c6bfb3ee1ba86115e46777b76bbf (patch) | |
| tree | 14841076a07711b5aa1e4f306b16d4e25af4e5d8 /tests/test_program_with_code_operations.py | |
| parent | e8efcb1bc34353ad89bf027d28eee6977de8cd13 (diff) | |
[FIX] sale_coupon: unvalid next_order programs if needed
Before this commit:
We would never unvalid a `next_order` program (and thus it's generated coupon)
Now:
We also retrieve applied `next_order` programs as we need to check if they are
still valid too
Step to reproduce:
- Create a program on `next_order` that require $300
- Add $300 worth of product on a SO
- Apply program, it will generate a coupon
- Make the SO total go below $300
- The generated coupon is still Valid and the client will receive that coupon
even if it is not supposed to anymore
Closes #3062
Diffstat (limited to 'tests/test_program_with_code_operations.py')
0 files changed, 0 insertions, 0 deletions
