[FIX] account_voucher: avoid trying unreconcile a move twice
authorRavi Gohil <rgo@tinyerp.com>
Thu, 10 Jul 2014 11:39:15 +0000 (17:09 +0530)
committerMartin Trigaux <mat@openerp.com>
Wed, 30 Jul 2014 13:56:19 +0000 (15:56 +0200)
commit8f0392b49099eaca6f4c5cdd0931da0821d73865
tree2a4894044873e003db3e474391679e8a54c2add4
parent873dc0370d7a006156cbfeb2ee793ddd67437777
[FIX] account_voucher: avoid trying unreconcile a move twice

When we cancel a voucher, we may be trying to unlink a reconciliation that was already removed on another move (just looking at the version in cache). In such cases, the unlink would fail with traceback. opw 610287
addons/account_voucher/account_voucher.py