Merge lp:~camptocamp/banking-addons/already_delete_reconcile_id into lp:banking-addons/bank-statement-reconcile-70
Proposed by
Vincent Renaville@camptocamp
Status: | Superseded |
---|---|
Proposed branch: | lp:~camptocamp/banking-addons/already_delete_reconcile_id |
Merge into: | lp:banking-addons/bank-statement-reconcile-70 |
Diff against target: |
17 lines (+5/-1) 1 file modified
account_statement_ext/account.py (+5/-1) |
To merge this branch: | bzr merge lp:~camptocamp/banking-addons/already_delete_reconcile_id |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Guewen Baconnier @ Camptocamp | Needs Fixing | ||
Review via email: mp+177149@code.launchpad.net |
This proposal has been superseded by a proposal from 2013-11-11.
Description of the change
[FIX] prevent to delete an already deleted reconcile_id
To post a comment you must log in.
Unmerged revisions
- 95. By Vincent Renaville@camptocamp
-
[FIX] prevent to delete an already deleted reconcile_id
I think a more efficient and straightforward way would be something along those lines:
[...] get('account. move.reconcile' ) reconcile_ id:
reconcile_ ids.add( move_line. reconcile_ id.id) obj.unlink( cr, uid, list(reconcile_ ids), context=context)
reconcile_obj = self.pool.
reconcile_ids = set()
for move_line in move.line_id:
if move_line.
reconcile_
return [...]
So you'll do only 1 DELETE at the end of the loop.