Don't set move field from line if there are empty for issue51
This commit is contained in:
1 parent
f654c6ff36
commit
277da7d3a2
1 file changed
+2
@@ -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, {
|
||||
|
||||
Reference in new issue
Block a user