[FIX] sale_planner: handle no-carriers base option

This commit is contained in:
Jared Kipe
2022-01-19 10:26:27 -08:00
parent e851007a86
commit da1042568e

View File

@@ -669,7 +669,7 @@ class SaleOrderMakePlan(models.TransientModel):
_logger.info('generate_shipping_options:: base_option: ' + str(base_option) + ' order_fake: ' + str(order_fake) + ' carriers: ' + str(carriers))
if not carriers:
return base_option
return [base_option]
if not base_option.get('sub_options'):
options = []