summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/content/website_root.js
diff options
context:
space:
mode:
authorRomain Derie <rde@odoo.com>2020-11-26 16:08:59 +0000
committerRomain Derie <rde@odoo.com>2020-12-02 09:14:29 +0000
commit26927417e2957acba6fb79446c2520107daa7eea (patch)
tree6434988b51c6761dd6778903fa322c66df3b9142 /addons/website/static/src/js/content/website_root.js
parent7a57cf0b68b3a1dce4276c6456a94b05eec20f28 (diff)
[FIX] website: remove old code
This code is a leftover of https://github.com/odoo/odoo/commit/2972976962617d4b8a0113bae58c640ab41cdff8#diff-70e782021bdfee46734a7fc7dbcad3104f7f985dd37f9320f1480d424581d67fL191 - We should not get info from the `err` and `data` parameters, those are not the same as the it was before the code got migrated, `data.data` never exists. - The fact that we handle the fail on this call is also a leftover of that refactoring where the error was done through a generic template. - We should not handle an error on publish action. We never handle that kind of error if the action should not fail by default. This is typically the case when loading the menu through "Edit Menu" or the page properties. - This is especially true with later version as error raised are already handled globaly Closes #60041 closes odoo/odoo#62532 X-original-commit: 4e089041252c25cc197a30f9e285d82f7162d809 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/website/static/src/js/content/website_root.js')
-rw-r--r--addons/website/static/src/js/content/website_root.js14
1 files changed, 0 insertions, 14 deletions
diff --git a/addons/website/static/src/js/content/website_root.js b/addons/website/static/src/js/content/website_root.js
index b4c65ca11b3..5d52902272c 100644
--- a/addons/website/static/src/js/content/website_root.js
+++ b/addons/website/static/src/js/content/website_root.js
@@ -304,20 +304,6 @@ var WebsiteRoot = publicRootData.PublicRoot.extend(KeyboardNavigationMixin, {
_t("Published with success."),
});
}
- })
- .guardedCatch(function (err, data) {
- data = data || {statusText: err.message.message};
- return new Dialog(self, {
- title: data.data ? data.data.arguments[0] : "",
- $content: $('<div/>', {
- html: (data.data ? data.data.arguments[1] : data.statusText)
- + '<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#model=' + $data.data('object') + '&id=' + $data.data('id')
- ),
- }),
- }).open();
});
},
/**