Skip to content
Snippets Groups Projects
Commit 90350b56 authored by Martin Trigaux's avatar Martin Trigaux
Browse files

[FIX] account_voucher: while canceling avoid removing twice the same reconciled move

bzr revid: mat@openerp.com-20130710082743-mfimnve33j06hgu0
parent 08b8d203
Branches
Tags
No related merge requests found
......@@ -946,6 +946,8 @@ class account_voucher(osv.osv):
move_pool = self.pool.get('account.move')
for voucher in self.browse(cr, uid, ids, context=context):
# refresh to make sure you don't unlink an already removed move
voucher.refresh()
recs = []
for line in voucher.move_ids:
if line.reconcile_id:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment