Fix effective_date of stock move from inventory for issue 1087

This commit is contained in:
Korbinian Preisler committed 2009-06-20 14:31:36 +02:00
1 parent 46e3bd8076
commit 57e978aead
1 file changed
+1
+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)