From 6e1121c30dda2667c3cc9b03e7427b70fb6edd4e Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Tue, 25 Feb 2020 10:30:05 +0000 Subject: [PATCH] [FIX] account: Partner on move created from statement line MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- addons/account/models/account_bank_statement.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/account/models/account_bank_statement.py b/addons/account/models/account_bank_statement.py index 5540b8badaa..be9f711bf3e 100644 --- a/addons/account/models/account_bank_statement.py +++ b/addons/account/models/account_bank_statement.py @@ -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: