[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) <csn@openerp.com>
This commit is contained in:
committed by
Cedric Snauwaert
parent
aafc5f7821
commit
ec32fd5459
@@ -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',
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user