How to update records in Odoo 14 | Using External API | Odoo XMLRPC
Channel:
Subscribers:
28,000
Published on ● Video Link: https://www.youtube.com/watch?v=W7EeIZp7vP8
Records can be updated using write(), it takes a list of records to update and mapping of updated fields to values similar to create().
#odooexternalapi #xmlrpc #odooxmlrpc
url = "http://localhost:8041"
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))
update_rec = models.execute_kw(db, uid, password, 'res.partner', 'write', [[id], {'name': " partner"}])
print("update_rec",update_rec)
Other Videos By Cybrosys Technologies
Tags:
odoo
cybrosys odoo
odoo apps
how to delete record in odoo
how to delete external id in odoo
how to override unlink method in odoo
how to override delete method in odoo
how to use name search method in odoo
how to add id in xml file to create record in odoo
create record using xml file in odoo
external application connect odoo
how to use name_search method in odoo
how to use search_count method in odoo
how to use _name_search method in odoo
how to use orm in terminal