Odoo Help


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.


QuerySets support for rpc

Joeri Belis
on 10/25/13, 11:11 AM 622 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/

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)


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