[FIX] account_statement_import: abs lines don't need partner_bank_id field

Let them use the one from account moves.
This commit is contained in:
Miquel Raïch
2022-02-23 13:02:37 +01:00
committed by Alexis de Lattre
parent 1ee97d3583
commit 16bacb83c3
3 changed files with 27 additions and 5 deletions

View File

@@ -12,10 +12,6 @@ class AccountBankStatementLine(models.Model):
# Ensure transactions can be imported only once
# (if the import format provides unique transaction ids)
unique_import_id = fields.Char(string="Import ID", readonly=True, copy=False)
# v13 field: bank_partner_id
# This field was removed in v14, but it is still used in the code, cf the
# method reconcile() !!! So I restore the field here
partner_bank_id = fields.Many2one("res.partner.bank", string="Partner Bank Account")
_sql_constraints = [
(