This question has been flagged
1 Reply
2765 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

Avatar
Discard
Best Answer

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/

Avatar
Discard