diff --git a/sale_product_pack/models/sale_order.py b/sale_product_pack/models/sale_order.py index 00f518fe..ea748e21 100644 --- a/sale_product_pack/models/sale_order.py +++ b/sale_product_pack/models/sale_order.py @@ -60,12 +60,4 @@ def write(self, vals): def _get_update_prices_lines(self): res = super()._get_update_prices_lines() - result = self.order_line.browse() - index = 0 - while index < len(res): - line = res[index] - result |= line - index += 1 - if line.product_id.pack_ok and line.pack_type == "detailed": - index += len(line.product_id.pack_line_ids) - return result + return res.filtered(lambda line: not line.pack_parent_line_id)