Skip to Content
Menu
This question has been flagged
1 Reply
3383 Views
Best Answer

Hi,

It is possible to call js function from the menu item. It is explained here in this Odoo doc.you can go through it,https://www.odoo.com/documentation/10.0/howtos/web.html

Then to call a python function from the Js ,

this._model = ...;
var x = this._model.call('my_method',[]).done(function(results){
  #do something;    
});


Thanks

Avatar
Discard