Added handling for non-list ids on unlink of account move.
This commit is contained in:
1 parent
277da7d3a2
commit
e62530c6cb
1 file changed
+2
@@ -154,6 +154,8 @@ class Move(OSV):
|
||||
return res
|
||||
|
||||
def unlink(self, cursor, user, ids, context=None):
|
||||
if isinstance(ids, (int, long)):
|
||||
ids = [ids]
|
||||
move_line_obj = self.pool.get('account.move.line')
|
||||
for move in self.browse(cursor, user, ids, context=context):
|
||||
if move.state == 'posted':
|
||||
|
||||
Reference in new issue
Block a user