This question has been flagged
2 Replies
3550 Views

While developing a Web Module in OpenERP, How to call a Python function from JS?

Avatar
Discard
Best Answer

First in init method initialize this.ds_users = new session.web.DataSetSearch(this, 'res.users');

and then suppose call read method or res user.

return this.ds_users.call('read', [this.session.uid, ['partner_id']]).then(function (results) { // code will be here..});

Thank You.

Hope this will helps you.

Avatar
Discard
Author

Thank you. Your answer really helped us finding the solution!

Best Answer

In the official documentation web development modules (version7), is the issue of RPC Calls. You can search in google "openerp-web-v7 readthedoc RPC Calls"

Avatar
Discard