From ec32fd54595614ee8763ba82c5862d79a3e21897 Mon Sep 17 00:00:00 2001 From: Hardik Prajapati Date: Tue, 30 Jul 2019 05:23:04 +0000 Subject: [PATCH] [FIX] account: traceback while creating Bank statement Validate a bank statement from reconciliation widget and then open the statements view from the widget and try creating a new statement. An error happens when trying to select a partner because the default journal is not set in the action closes odoo/odoo#35418 Signed-off-by: Cedric Snauwaert (csn) --- .../static/src/js/reconciliation/reconciliation_renderer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/static/src/js/reconciliation/reconciliation_renderer.js b/addons/account/static/src/js/reconciliation/reconciliation_renderer.js index 312e426f3a3..8594a4f28b9 100644 --- a/addons/account/static/src/js/reconciliation/reconciliation_renderer.js +++ b/addons/account/static/src/js/reconciliation/reconciliation_renderer.js @@ -216,7 +216,7 @@ var StatementRenderer = Widget.extend(FieldManagerMixin, { res_model: 'account.bank.statement', views: [[false, 'list'], [false, 'form']], type: 'ir.actions.act_window', - context: {search_default_journal_id: journalId}, + context: {search_default_journal_id: journalId, 'journal_type':'bank'}, view_mode: 'form', }); },