From 9e3689edcddbe02405c0cbacd1be8ce69a055052 Mon Sep 17 00:00:00 2001 From: mariadforgeflow Date: Wed, 9 Feb 2022 13:42:48 +0100 Subject: [PATCH] [FIX] stock_orderpoint_manual_procurement: wrong parameter in _prepare_procurement_values --- .../wizards/make_procurement_orderpoint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stock_orderpoint_manual_procurement/wizards/make_procurement_orderpoint.py b/stock_orderpoint_manual_procurement/wizards/make_procurement_orderpoint.py index fe2f312c0..709365d03 100644 --- a/stock_orderpoint_manual_procurement/wizards/make_procurement_orderpoint.py +++ b/stock_orderpoint_manual_procurement/wizards/make_procurement_orderpoint.py @@ -70,7 +70,7 @@ class MakeProcurementOrderpoint(models.TransientModel): raise ValidationError(_("Quantity must be positive.")) if not item.orderpoint_id: raise ValidationError(_("No reordering rule found!")) - values = item.orderpoint_id._prepare_procurement_values(item.qty) + values = item.orderpoint_id._prepare_procurement_values() values["date_planned"] = fields.Datetime.to_string( fields.Date.from_string(item.date_planned) )