While developing a Web Module in OpenERP, How to call a Python function from JS?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
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!
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!