summaryrefslogtreecommitdiff
path: root/addons/web/doc/module/static/src/js/first_module.js.3.diff
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/doc/module/static/src/js/first_module.js.3.diff')
-rw-r--r--addons/web/doc/module/static/src/js/first_module.js.3.diff4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/doc/module/static/src/js/first_module.js.3.diff b/addons/web/doc/module/static/src/js/first_module.js.3.diff
index 295e90b6840..ecab3ee1832 100644
--- a/addons/web/doc/module/static/src/js/first_module.js.3.diff
+++ b/addons/web/doc/module/static/src/js/first_module.js.3.diff
@@ -3,8 +3,8 @@
@@ -1,7 +1,11 @@
// static/src/js/first_module.js
openerp.web_example = function (instance) {
-- instance.web.client_actions.add('example.action', 'instance.web_example.action');
-- instance.web_example.action = function (parent, action) {
+- instance.web.client_actions.add('example.action', 'instance.web_example.Action');
+- instance.web_example.Action = function (parent, action) {
- console.log("Executed the action", action);
- };
+ instance.web.client_actions.add('example.action', 'instance.web_example.Action');