With the help of call method we have to create xmlrpc/2/object, it is used to call methods of odoo models and send value in database.
For example you can see below code and use in your odoo module.
models = xmlrpclib.ServerProxy('{}/xmlrpc/2/object'.format(url))
models.execute_kw(db, uid, password,
'res.partner', 'check_access_rights',
['read'], {'raise_exception': False})
true
Note-With this code we can create an array/list of parameters passed by position only.
0 Comment(s)