From d663ab3345b2ffba62ffb20163215326d6b5f12d Mon Sep 17 00:00:00 2001 From: Varun Raval Date: Fri, 14 Jun 2019 08:55:00 +0000 Subject: [PATCH] [FIX] account: fix breadcrumbs, action panel which is not appearing in duplicating journal entry Before this commit, when user duplicates the journal entry, the action panel and breadcrumbs are lost due to 'inline' action given in it for opening form view in edit mode directly. After this commit, when user duplicates the journal entry the action panel and breadcrumbs will be appear and also the form view opens directly in the edit mode. task-1999208 closes odoo/odoo#34127 Signed-off-by: Quentin De Paoli (qdp) --- addons/account/models/account_move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 6bfaea3e1f5..f8cf5847cbb 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -446,8 +446,8 @@ class AccountMove(models.Model): def action_duplicate(self): self.ensure_one() action = self.env.ref('account.action_move_journal_line').read()[0] - action['target'] = 'inline' action['context'] = dict(self.env.context) + action['context']['form_view_initial_mode'] = 'edit' action['context']['view_no_maturity'] = False action['views'] = [(self.env.ref('account.view_move_form').id, 'form')] action['res_id'] = self.copy().id