summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorDhawal Limbuwala <dli@odoo.com>2017-12-05 09:41:06 +0100
committerYannick Tivisse <yti@odoo.com>2017-12-05 13:13:22 +0100
commit3821eb218e0417fdea475d3cb9b503a8803f69f8 (patch)
treedc962c35538323470ef9e5c5b31b5aa6f1b421d4 /addons
parent350fd6aa8a36c0fc274f7ad4e74039cf0505bff3 (diff)
[IMP] website: Reload website dashboard when coming back from breadcrumb
Purpose ======= When clicking on a dashboard element (eg: an invoice) and modifying it doesn't reload the dashboard, which could be confusing.
Diffstat (limited to 'addons')
-rw-r--r--addons/website/static/src/js/backend/dashboard.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/website/static/src/js/backend/dashboard.js b/addons/website/static/src/js/backend/dashboard.js
index 3fd7a79161d..a4c69885d62 100644
--- a/addons/website/static/src/js/backend/dashboard.js
+++ b/addons/website/static/src/js/backend/dashboard.js
@@ -238,8 +238,14 @@ var Dashboard = Widget.extend(ControlPanelMixin, {
},
on_reverse_breadcrumb: function() {
+ var self = this;
web_client.do_push_state({});
this.update_cp();
+ this.fetch_data().then(function() {
+ self.$('.o_website_dashboard').empty();
+ self.render_dashboards();
+ self.render_graphs();
+ });
},
on_dashboard_action: function (ev) {