Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
4248 Visualizzazioni

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; 
 
});

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
dic 16
4846
3
feb 25
4603
1
giu 23
1942
1
mag 23
1892
1
ott 22
4055