[IMP] survey: open result page in new tab
SPECIFICATION Before this commit, when clicking on the 'See Results' button the page was loaded on the previous one. After this commit, the page will open in a new tab. We also took the opportunity to replace all the '_blank' value occurence by the 'new' value as '_blank' value is not a valid value for the 'target' field of the 'ir.actions.act_url' model. LINKS Task-2700305 PR : odoo/odoo#80858 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
@@ -905,7 +905,7 @@ class Survey(models.Model):
|
||||
return {
|
||||
'type': 'ir.actions.act_url',
|
||||
'name': "Results of the Survey",
|
||||
'target': 'self',
|
||||
'target': 'new',
|
||||
'url': '/survey/results/%s' % self.id
|
||||
}
|
||||
|
||||
@@ -915,7 +915,7 @@ class Survey(models.Model):
|
||||
return {
|
||||
'type': 'ir.actions.act_url',
|
||||
'name': "Test Survey",
|
||||
'target': '_blank',
|
||||
'target': 'new',
|
||||
'url': '/survey/test/%s' % self.access_token,
|
||||
}
|
||||
|
||||
@@ -949,7 +949,7 @@ class Survey(models.Model):
|
||||
self.ensure_one()
|
||||
return {
|
||||
'type': 'ir.actions.act_url',
|
||||
'target': '_blank',
|
||||
'target': 'new',
|
||||
'url': '/survey/%s/certification_preview' % (self.id)
|
||||
}
|
||||
|
||||
@@ -976,7 +976,7 @@ class Survey(models.Model):
|
||||
return {
|
||||
'type': 'ir.actions.act_url',
|
||||
'name': "Open Session Manager",
|
||||
'target': '_blank',
|
||||
'target': 'new',
|
||||
'url': '/survey/session/manage/%s' % self.access_token
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user