rpc.query isn't working in my end.
I wanna call the function in wizard model through button inside wizard.
Thanks in advance.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
rpc.query isn't working in my end.
I wanna call the function in wizard model through button inside wizard.
Thanks in advance.
var rpc = require('web.rpc') rpc.query( model: //your model, method: //your method, args: [{ 'arg1': value1, }] }).then(function (result) { // your code });
on model.py
@api.model
def your_method(self):
...