Fix effective_date of stock move from inventory for issue 1087

This commit is contained in:
Korbinian Preisler
2009-06-20 14:31:36 +02:00
parent 3dd6a0ff80
commit b1f39fe223
+1
View File
@@ -296,6 +296,7 @@ class InventoryLine(ModelSQL, ModelView):
'uom': line.uom.id,
'company': line.inventory.company.id,
'state': 'done',
'effective_date': line.inventory.date,
}, context=context)
self.write(cursor, user, line.id, {'move': move_id}, context=context)