Skip to content

Commit

Permalink
account_check_deposit: no auto-post move
Browse files Browse the repository at this point in the history
  • Loading branch information
alexis-via authored and OCA-git-bot committed Jul 12, 2019
1 parent 5146d04 commit 1eb6ac3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions account_check_deposit/models/account_deposit.py
Expand Up @@ -237,9 +237,8 @@ def validate_deposit(self):
counter_vals['move_id'] = move.id
aml_obj.create(counter_vals)

move.post()
move.validate()
deposit.write({'state': 'done', 'move_id': move.id})
# We have to reconcile after post()
for reconcile_lines in to_reconcile_lines:
reconcile_lines.reconcile()
return True
Expand Down

0 comments on commit 1eb6ac3

Please sign in to comment.