diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-11-30 17:17:16 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-11-30 17:17:16 +0100 |
| commit | 5d7ad2b16cc3ef579a6657822b7c57b07fef4f52 (patch) | |
| tree | f3a52360cdba2fcbc4d08f4b2f87c7c17751fb70 | |
| parent | ab084d580ff0edf9be1d12cec87aeffdd84459b7 (diff) | |
| parent | 863fad1b535b05e2fd61b29888f492290c1aa7a5 (diff) | |
[MERGE] forward port branch saas-15 up to 863fad1b535
| -rw-r--r-- | addons/account/models/account_bank_statement.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/models/account_bank_statement.py b/addons/account/models/account_bank_statement.py index dc265156946..9c073db9474 100644 --- a/addons/account/models/account_bank_statement.py +++ b/addons/account/models/account_bank_statement.py @@ -902,7 +902,7 @@ class AccountBankStatementLine(models.Model): total = self.amount for aml_rec in payment_aml_rec: total -= aml_rec.debit - aml_rec.credit - aml_rec.write({'statement_line_id': self.id}) + aml_rec.with_context(check_move_validity=False).write({'statement_line_id': self.id}) counterpart_moves = (counterpart_moves | aml_rec.move_id) # Create move line(s). Either matching an existing journal entry (eg. invoice), in which |
