summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/content
diff options
context:
space:
mode:
authorRomain Derie <rde@odoo.com>2019-09-02 11:48:57 +0000
committerRomain Derie <rde@odoo.com>2019-10-02 07:13:27 +0000
commitae6db1a5f410f66fb7fb8521ae09e2429d2b18bf (patch)
treeeb7d6ba72a34ed14249e83cc08f6b7e5bf3e1442 /addons/website/static/src/js/content
parent9b38bcec1269f0e72606e774f5e1f5f4a78baa89 (diff)
[REM] account, project, sale, *: remove dead code 'return_label'
Since Odoo 9.0, the `return_label` in url was not working anymore. What it did before 9.0 is add an item in the breadcrumb which once clicked would redirect to the frontend. This was handled in the `do_load_state` of the action manager in JS. We don't need to reimplement that behavior as now we have the 'Go to website' stat button. Thus we remove the code. Closes #36325 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/website/static/src/js/content')
-rw-r--r--addons/website/static/src/js/content/website_root.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website/static/src/js/content/website_root.js b/addons/website/static/src/js/content/website_root.js
index 70f8c5014f5..8c27fb5736e 100644
--- a/addons/website/static/src/js/content/website_root.js
+++ b/addons/website/static/src/js/content/website_root.js
@@ -170,7 +170,7 @@ var WebsiteRoot = publicRootData.PublicRoot.extend({
+ '<br/>'
+ _.str.sprintf(
_t('It might be possible to edit the relevant items or fix the issue in <a href="%s">the classic Odoo interface</a>'),
- '/web#return_label=Website&model=' + $data.data('object') + '&id=' + $data.data('id')
+ '/web#model=' + $data.data('object') + '&id=' + $data.data('id')
),
}),
}).open();