summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/framework
diff options
context:
space:
mode:
authorJérome Maes <jem@openerp.com>2016-12-05 11:27:02 +0100
committerJérome Maes <jem@openerp.com>2016-12-05 11:30:03 +0100
commit13f84b9aca163a8d295678f234ddc0f5b9407111 (patch)
tree5004f039409db4965f6ca7d96c9c1cdc55cc5ea7 /addons/web/static/src/js/framework
parentd25c8e7aa5d610db5d13f7dd041b25a4220d84dc (diff)
[REM] *: remove ir.needaction mixin
ir.needaction_mixin is not used anymore by the webclient. From 9.0, the concept has changed: this feature is now available in mail module, with the mail.thread mixin, and message_neeadction field. Remove all code handeling needaction bullet and counter on ir.ui.menu, knowing that since 9.0 webclient does not display the counter anymore. This code was, thus, useless and some RPC calls were done for nothing, and adapt accounting reconcialiation widget.
Diffstat (limited to 'addons/web/static/src/js/framework')
-rw-r--r--addons/web/static/src/js/framework/view.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/addons/web/static/src/js/framework/view.js b/addons/web/static/src/js/framework/view.js
index 76382f605d6..c5a017710e9 100644
--- a/addons/web/static/src/js/framework/view.js
+++ b/addons/web/static/src/js/framework/view.js
@@ -118,9 +118,7 @@ var View = Widget.extend({
}
}
args.push(context);
- return dataset.call_button(action_data.name, args).then(handler).then(function () {
- core.bus.trigger('do_reload_needaction');
- });
+ return dataset.call_button(action_data.name, args).then(handler);
} else if (action_data.type === "action") {
return data_manager.load_action(action_data.name, _.extend(pyeval.eval('context', context), {
active_model: dataset.model,