[MERGE] forward port branch saas-14 up to be64ba6069

This commit is contained in:
Christophe Simonis
2017-11-30 17:15:51 +01:00
@@ -883,7 +883,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