[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
This commit is contained in:
Lucas Perais (lpe)
2018-02-12 11:05:30 +01:00
parent e0cb522bf2
commit b6d156ad7a
+1
View File
@@ -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