Skip to content
Snippets Groups Projects
Commit 9c459276 authored by Quentin De Paoli's avatar Quentin De Paoli
Browse files

[IMP] account: support of several payments linked to the same statement line.

This is needed to allow having a single bank statement validating 2 payments in case of our internal OGONE processing. An incoming commit in account_batch_deposit will explain more in-depth the use case covered
parent 771f65ec
Branches
Tags
No related merge requests found
......@@ -696,6 +696,8 @@ class AccountBankStatementLine(models.Model):
# Create counterpart move lines and reconcile them
for aml_dict in counterpart_aml_dicts:
if aml_dict['move_line'].payment_id:
aml_dict['move_line'].write({'statement_line_id': self.id})
if aml_dict['move_line'].partner_id.id:
aml_dict['partner_id'] = aml_dict['move_line'].partner_id.id
aml_dict['account_id'] = aml_dict['move_line'].account_id.id
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment