mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
mrp_multi_level: date_planned must be passed on as datetime.
This commit is contained in:
committed by
Jordi Ballester Alomar
parent
e34f846ffe
commit
529ecc8c5f
@@ -132,7 +132,8 @@ class MrpInventoryProcureItem(models.TransientModel):
|
|||||||
|
|
||||||
def _prepare_procurement_values(self, group=False):
|
def _prepare_procurement_values(self, group=False):
|
||||||
return {
|
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,
|
'warehouse_id': self.warehouse_id,
|
||||||
# 'company_id': self.company_id, # TODO: consider company
|
# 'company_id': self.company_id, # TODO: consider company
|
||||||
'group_id': group,
|
'group_id': group,
|
||||||
|
|||||||
Reference in New Issue
Block a user