From b2e1607eb7c1fc76ba860d424e1c989407f2da00 Mon Sep 17 00:00:00 2001 From: "Antoine (ande)" Date: Tue, 11 Jul 2023 09:09:32 +0000 Subject: [PATCH] [FIX] account: bank statement traceback Steps to reproduce: 1. Go to Accounting 2. Go to Bank -> Operations 3. Select one of the lines 4. Try to create a statement 5. Traceback Cause of the issue: active_ids can be None opw-3419257 closes odoo/odoo#129078 X-original-commit: 4af42cc815a50d29ba59c1f33703760e671b296c Signed-off-by: Andrea Grazioso (agr) Signed-off-by: Antoine Demany (ande) --- addons/account/models/account_bank_statement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/account_bank_statement.py b/addons/account/models/account_bank_statement.py index f9e152065ce..cc8b30b7110 100644 --- a/addons/account/models/account_bank_statement.py +++ b/addons/account/models/account_bank_statement.py @@ -261,7 +261,7 @@ class AccountBankStatement(models.Model): if 'line_ids' not in fields_list: return defaults - active_ids = self._context.get('active_ids') + active_ids = self._context.get('active_ids', []) context_split_line_id = self._context.get('split_line_id') context_st_line_id = self._context.get('st_line_id') lines = None