Odoo Help

0

Developing Custom Web Module

By
Aspirant Labs India Pvt Ltd
on 8/19/13, 9:32 AM 1,198 views

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

1
Nimesh
On 8/19/13, 10:01 AM

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.

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

Aspirant Labs India Pvt Ltd
on 8/21/13, 10:33 PM
1
Gustavo
On 8/19/13, 3:50 PM

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"

Thank you!

Aspirant Labs India Pvt Ltd
on 8/21/13, 10:33 PM

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)

Stats

Asked: 8/19/13, 9:32 AM
Seen: 1198 times
Last updated: 3/16/15, 8:10 AM