This question has been flagged
1 Reply
2037 Views

I'm using the library openerplib to get some information from the database. It's working great, but now I need to call a function of a specific class (res.partner). How can I call it?

connection = openerplib.get_connection (hostname="localhost", database="my_db", login="admin", password="my_pwd", port=8069)     
res_partner_model = connection.get_model("res.partner")

I'm using OpenERP7. Is this possible?

Avatar
Discard
Best Answer

Hello Juan,

Yes its possible,

object = connection.get_model(model_name)  

then 

object.create(vals) , here you can use all orm methdos,

Thanks

Tidyway(www.tidyway.in)

Avatar
Discard
Author

That's right. Thank you!