mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[Fix] Convert date_planned string to datetime string
This commit is contained in:
committed by
Joan Sisquella
parent
599d7dc59b
commit
ed8d853fcf
@@ -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",
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user