Odoo Help


1 Answer
Julian Hammer
8/18/14, 7:42 AM

One needs to use the new JSON RPC interface. 

# price_get_multi(self, cr, uid, pricelist_ids, products_by_qty_by_partner, context=None)
>>> cnt = oerplib.rpc.ConnectorJSONRPC('SERVER_NAME', port=8069)
>>> cnt.proxy.web.session.authenticate(db='DATABASE_NAME', login='USERNAME', password='PASSWORD')
>>> r = cnt.proxy.web.dataset.call(model='product.pricelist', method='price_get_multi',
...                                args=[[1], [(700, 1, None)], {'uid': 1}])
>>> if 'error' not in r:
...     print r
... else:
...     print r['error']['data']['debug']
{u'jsonrpc': u'2.0', u'id': 154493018, u'result': {u'item_id': 1, u'700': {u'1': 0.06}}}

Ask a Question
Keep Informed
1 follower(s)
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 eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now