diff options
| author | Hardik Prajapati <hpr@odoo.com> | 2019-07-30 05:23:04 +0000 |
|---|---|---|
| committer | Cedric Snauwaert <csn@openerp.com> | 2019-08-02 15:19:38 +0000 |
| commit | ec32fd54595614ee8763ba82c5862d79a3e21897 (patch) | |
| tree | dcabe7eac46378d371eeff734723987b0cecba17 | |
| parent | aafc5f7821a9fbe09316a3688ab7cab38c5f0cb0 (diff) | |
[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>
| -rw-r--r-- | addons/account/static/src/js/reconciliation/reconciliation_renderer.js | 2 |
1 files changed, 1 insertions, 1 deletions
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', }); }, |
