Odoo Help


QuerySets support for rpc

Joeri Belis
on 10/25/13, 11:11 AM 959 views

Do i understand the rpc call technology correct that the openerp.web.Model() and openerp.web.Model.query is only available for javascript in a website?

I would like to use python and also have a object which is immutable but allows building new instances with filter , filter, limit and all functions just like Django QuerySets

Niels Huylebroeck
On 6/19/14, 8:16 AM

The XMLRPC or JsonRPC interface is further (lightly) documented in the Technical Memento (some of the info there might be outdated) : https://www.odoo.com/files/memento/

Also note that the openerp.web.* functions are a client side overlay for the xml/json rpc interface but should allow access to all methods defined on any model.

The Odoo ORM does not work the same as Django QuerySets, this might change with the new API coming Soon(tm), instead it relies on you passing the ids of the records along with any method you want to execute.

You might find the ErpPeek library/toolkit useful: https://erppeek.readthedocs.org/

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.


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)


Asked: 10/25/13, 11:11 AM
Seen: 959 times
Last updated: 3/16/15, 8:10 AM