How to use unlink method() | Odoo External API | Odoo XMLRPC – CBMS Odoo ERP

How to use unlink method() | Odoo External API | Odoo XMLRPC – CBMS Odoo ERP

0 minutes, 25 seconds Read

Records can be deleted in bulk by providing their ids to unlink().
#odooexternalapi #xmlrpc #odooxmlrpc

url = ”
db = ‘test_local_enterprise_db’
username = ’14’
password = ’14’
import xmlrpc.client
common = xmlrpc.client.ServerProxy(‘{}/xmlrpc/2/common’.format(url))
version = common.version()
print(“version”, version)
uid = common.authenticate(db, username, password, {})
print(“uid = “,uid)
models = xmlrpc.client.ServerProxy(‘{}/xmlrpc/2/object’.format(url))
delete_rec = models.execute_kw(db, uid, password, ‘res.partner’, ‘unlink’, [[64]])
print(“delete_rec”,delete_rec)

#unlink #method #Odoo #External #API #Odoo #XMLRPC

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *