Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to use web.client_actions in odoo9 js?

By
sambath
on 9/26/16, 7:26 AM 123 views

in odoo @ \https://www.odoo.com/documentation/9.0/howtos/web.html


openerp.oepetstore = function(instance, local) { var _t = instance.web._t, _lt = instance.web._lt; var QWeb = instance.web.qweb; local.HomePage = instance.Widget.extend({ start: function() { console.log("pet store home page loaded"); }, }); instance.web.client_actions.add( 'petstore.homepage', 'instance.oepetstore.HomePage'); }
 

most of the code in the odoo document is in v8 js, but i am trying to learn odoo 9 js. how to call instance.web.client_actions in odoo 9 and what is local mean for

 

i have done this !!!

odoo.define('oepetstore.petstore', function(require) {	
"use strict";

var core = require('web.core');
var _t = core._t;
var _lt = core._lt;
var QWeb = core.qweb; 
 
});

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

3 follower(s)

Stats

Asked: 9/26/16, 7:26 AM
Seen: 123 times
Last updated: 9/26/16, 9:58 AM