[FIX] account: Partner on move created from statement line
Steps to reproduce the bug: - Let's consider a customer C - Create a customer invoice I for C for 100€ and reference R - Create a bank statement with a line L for C and the reference R - Reconcile I and L and go in the jouranl entries Bug: The account move created for the reconciliation had no partner set. opw:2200679 closes odoo/odoo#46332 X-original-commit: c454b661668a54240ff32ede78f0ad963e3fcd25 Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
This commit is contained in:
@@ -596,6 +596,7 @@ class AccountBankStatementLine(models.Model):
|
||||
'journal_id': self.statement_id.journal_id.id,
|
||||
'currency_id': self.statement_id.currency_id.id,
|
||||
'date': self.statement_id.accounting_date or self.date,
|
||||
'partner_id': self.partner_id.id,
|
||||
'ref': ref,
|
||||
}
|
||||
if self.move_name:
|
||||
|
||||
Reference in New Issue
Block a user