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