diff --git a/addons/sale/models/sale_order.py b/addons/sale/models/sale_order.py index 6a8816fffb0..ef1a95d2f6e 100644 --- a/addons/sale/models/sale_order.py +++ b/addons/sale/models/sale_order.py @@ -316,6 +316,7 @@ class SaleOrder(models.Model): """ For service and consumable, we only take the min dates. This method is extended in sale_stock to take the picking_policy of SO into account. """ + self.mapped("order_line") # Prefetch indication for order in self: dates_list = [] for line in order.order_line.filtered(lambda x: x.state != 'cancel' and not x._is_delivery() and not x.display_type):