Set the date for the move created from a line

This commit is contained in:
Cédric Krier committed 2008-09-19 14:15:50 +02:00
1 parent 6aac2605ea
commit 865cbe5423
1 file changed
+1
+1
View File
@@ -1029,6 +1029,7 @@ class Line(OSV):
vals['move'] = move_obj.create(cursor, user, {
'period': vals.get('period', context.get('period')),
'journal': vals.get('journal', context.get('journal')),
'date': vals.get('date', False),
}, context=context)
res = super(Line, self).create(cursor, user, vals, context=context)
line = self.browse(cursor, user, res, context=context)