mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
Merge branch 'fix/11.0/sale_planner__max_none' into '11.0-test'
fix/11.0/sale_planner__max_none into 11.0-test See merge request hibou-io/hibou-odoo/suite!950
This commit is contained in:
@@ -730,7 +730,7 @@ class SaleOrderMakePlan(models.TransientModel):
|
|||||||
return max_requested_date
|
return max_requested_date
|
||||||
|
|
||||||
def _get_max_transit_days(self, sub_options):
|
def _get_max_transit_days(self, sub_options):
|
||||||
return max(wh_option.get('transit_days', 0) for wh_option in sub_options.values())
|
return max((wh_option.get('transit_days', 0) or 0) for wh_option in sub_options.values())
|
||||||
|
|
||||||
def _generate_shipping_carrier_option(self, base_option, order_fake, carrier):
|
def _generate_shipping_carrier_option(self, base_option, order_fake, carrier):
|
||||||
# some carriers look at the order carrier_id
|
# some carriers look at the order carrier_id
|
||||||
|
|||||||
Reference in New Issue
Block a user