[Fix] Convert date_planned string to datetime string

This commit is contained in:
Akim Juillerat
2018-05-25 10:38:35 +02:00
committed by Joan Sisquella
parent 599d7dc59b
commit ed8d853fcf
2 changed files with 3 additions and 2 deletions

View File

@@ -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",

View File

@@ -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(