summaryrefslogtreecommitdiff
path: root/addons/web/static
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/static')
-rw-r--r--addons/web/static/src/js/tools/test_menus.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/addons/web/static/src/js/tools/test_menus.js b/addons/web/static/src/js/tools/test_menus.js
index 995ad9f6dd4..3b0523d8f65 100644
--- a/addons/web/static/src/js/tools/test_menus.js
+++ b/addons/web/static/src/js/tools/test_menus.js
@@ -38,7 +38,11 @@
if (DiscussWidget) {
DiscussWidget.include({
- on_attach_callback: async function () {
+ /**
+ * Overriding a method that is called every time the discuss
+ * component is updated.
+ */
+ _updateControlPanel: async function () {
await this._super(...arguments);
viewUpdateCount++;
},