diff --git a/stock_orderpoint_manual_procurement/__manifest__.py b/stock_orderpoint_manual_procurement/__manifest__.py index c493fc593..7df1509ac 100644 --- a/stock_orderpoint_manual_procurement/__manifest__.py +++ b/stock_orderpoint_manual_procurement/__manifest__.py @@ -6,7 +6,7 @@ "name": "Stock Orderpoint Manual Procurement", "summary": "Allows to create procurement orders from orderpoints instead " "of relying only on the scheduler.", - "version": "11.0.1.1.0", + "version": "11.0.1.1.1", "author": "Eficent, " "Odoo Community Association (OCA)", "website": "https://github.com/OCA/stock-logistics-warehouse", diff --git a/stock_orderpoint_manual_procurement/wizards/make_procurement_orderpoint.py b/stock_orderpoint_manual_procurement/wizards/make_procurement_orderpoint.py index d786ef650..e4f1f67d4 100644 --- a/stock_orderpoint_manual_procurement/wizards/make_procurement_orderpoint.py +++ b/stock_orderpoint_manual_procurement/wizards/make_procurement_orderpoint.py @@ -67,7 +67,8 @@ class MakeProcurementOrderpoint(models.TransientModel): if not item.orderpoint_id: raise ValidationError(_("No reordering rule found!")) values = item.orderpoint_id._prepare_procurement_values(item.qty) - values['date_planned'] = item.date_planned + values['date_planned'] = fields.Datetime.to_string( + fields.Date.from_string(item.date_planned)) # Run procurement try: self.env['procurement.group'].run(