Skip to content

Commit

Permalink
mrp_multi_level: date_planned must be passed on as datetime.
Browse files Browse the repository at this point in the history
  • Loading branch information
LoisRForgeFlow committed Oct 24, 2018
1 parent 1316ac6 commit 4e05f19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mrp_multi_level/wizards/mrp_inventory_procure.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ class MrpInventoryProcureItem(models.TransientModel):

def _prepare_procurement_values(self, group=False):
return {
'date_planned': self.date_planned, # TODO: play with this...
'date_planned': fields.Datetime.to_string(
fields.Date.from_string(self.date_planned)),
'warehouse_id': self.warehouse_id,
# 'company_id': self.company_id, # TODO: consider company
'group_id': group,
Expand Down

0 comments on commit 4e05f19

Please sign in to comment.