From 7c5fcf4c631cfcb80786566acae7ca4484fcf048 Mon Sep 17 00:00:00 2001 From: duongnguyen <daiduongnguyen2709@gmail.com> Date: Fri, 15 Sep 2023 15:46:27 +0700 Subject: [PATCH] [FIX] account: wrong field name on button_open_statement_lines MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is just a typo XD closes odoo/odoo#135608 Signed-off-by: William André (wan) <wan@odoo.com> --- addons/account/models/account_payment.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/account/models/account_payment.py b/addons/account/models/account_payment.py index b59a12324445..04bd10180553 100644 --- a/addons/account/models/account_payment.py +++ b/addons/account/models/account_payment.py @@ -1000,15 +1000,15 @@ class AccountPayment(models.Model): 'res_model': 'account.bank.statement.line', 'context': {'create': False}, } - if len(self.reconciled_statement_lines_ids) == 1: + if len(self.reconciled_statement_line_ids) == 1: action.update({ 'view_mode': 'form', - 'res_id': self.reconciled_statement_lines_ids.id, + 'res_id': self.reconciled_statement_line_ids.id, }) else: action.update({ 'view_mode': 'list,form', - 'domain': [('id', 'in', self.reconciled_statement_lines_ids.ids)], + 'domain': [('id', 'in', self.reconciled_statement_line_ids.ids)], }) return action -- GitLab