From b6d156ad7ae5ff3733e84594cb8f77ed474306de Mon Sep 17 00:00:00 2001 From: "Lucas Perais (lpe)" Date: Fri, 9 Feb 2018 15:29:06 +0100 Subject: [PATCH] [FIX] web_planner: take 'view_type' of action into account Before this commit, when a planner made a link from an action, the view_type was always 'list' This prevented the view from being properly loaded, as an action of view_type form wouldn't be recognized After this commit, such links are well formed, and form view_type actions are correctly loaded OPW 806758 --- addons/web_planner/models/web_planner.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web_planner/models/web_planner.py b/addons/web_planner/models/web_planner.py index f1cae08d550..e9da0bf4fcb 100644 --- a/addons/web_planner/models/web_planner.py +++ b/addons/web_planner/models/web_planner.py @@ -59,6 +59,7 @@ class Planner(models.Model): action = self.env.ref(action_xml_id, False) if action: params['action'] = action.id + params['view_type'] = action.view_type or view_type else: params['model'] = 'ir.module.module' # setting the module