diff options
| author | jvm-odoo <jvm@odoo.com> | 2020-05-20 12:04:30 +0000 |
|---|---|---|
| committer | jvm-odoo <jvm@odoo.com> | 2020-05-25 07:31:06 +0000 |
| commit | a19684af955b6cfecbacfb75078b8411b7a82a60 (patch) | |
| tree | 4a349930ca337a7b86837fb82ab6045fb8356ef5 /addons/website/static/src | |
| parent | 0e7102587ea28a74a4e0ebdcff181dcabbf45163 (diff) | |
[FIX] website_sale_coupon_delivery: traceback when going back
Issue
- Install eCommerce, Delivery Costs & Delivery Coupon
- Add a delivery method for US only
- Publish the delivery method
- Logout
- Order something, select your delivery method
and pay with wire transfer
- When it's done, click 2 times on the browser
back button
Traceback
Cause
When going back, the order is empty and
we are doing self.ensure_one() on it
when looking for free shipping lines
Solution
Check if the order is not empty before
looking for free shipping lines
OPW-2243736
closes odoo/odoo#51756
X-original-commit: 7b37c9d8ac1ccb1b6684308cf4dedf3a4b6bed11
Signed-off-by: Jason Van Malder (jvm) <jvm@odoo.com>
Diffstat (limited to 'addons/website/static/src')
0 files changed, 0 insertions, 0 deletions
