Don't set move field from line if there are empty for issue51

This commit is contained in:
Cédric Krier committed 2008-06-12 09:20:55 +02:00
1 parent f654c6ff36
commit 277da7d3a2
1 file changed
+2
+2
View File
@@ -773,6 +773,8 @@ class Line(OSV):
name = 'state'
if name not in ('period', 'journal', 'date', 'state'):
raise Exception('Invalid name')
if not value:
return
move_obj = self.pool.get('account.move')
line = self.browse(cursor, user, id, context=context)
move_obj.write(cursor, user, line.move.id, {