From ed8d853fcf1d5a9d5d367684877bb1ba5be655a8 Mon Sep 17 00:00:00 2001 From: Akim Juillerat Date: Fri, 25 May 2018 10:38:35 +0200 Subject: [PATCH] [Fix] Convert date_planned string to datetime string --- stock_orderpoint_manual_procurement/__manifest__.py | 2 +- .../wizards/make_procurement_orderpoint.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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(