Odoo Help

Welcome!

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

0

Developing Custom Web Module

By
Aspirant Labs India Pvt Ltd
on 8/19/13, 9:32 AM 873 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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

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