diff --git a/sale_stock_mto_as_mts_orderpoint/models/sale_order.py b/sale_stock_mto_as_mts_orderpoint/models/sale_order.py index 6846c1436ac7..60ab35e60e79 100644 --- a/sale_stock_mto_as_mts_orderpoint/models/sale_order.py +++ b/sale_stock_mto_as_mts_orderpoint/models/sale_order.py @@ -73,7 +73,7 @@ def _get_mto_orderpoint(self, product_id): .sudo() .create( { - "product_id": self.product_id.id, + "product_id": product_id.id, "warehouse_id": warehouse.id, "location_id": ( warehouse._get_locations_for_mto_orderpoints().id