I'm trying to call a function declared in the class res.partner from a controller. This controller is "outside", so I had to use openerplib (xmlrpclib is also valid) to get data from the models.
For example:
connection = openerplib.get_connection (hostname="localhost", database="my_db", login="admin", password="my_pwd", port=8069)
res_partner_model = connection.get_model("res.partner")
Now I have the model and I can use search, read, or search_read methods to get data from the res.partner model.
But, how can I call a function declared in that class? Is it possible?
Yes you can call function using
xmlrpclib.Try this,