[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user