How to read records using Odoo XML RPC | Read records External API

Subscribers:
28,000
Published on ● Video Link: https://www.youtube.com/watch?v=usZPCeEonJ8



Category:
Guide
Duration: 2:07
1,346 views
3


Record data is accessible via the read() method, which takes a list of ids (as returned by search() ) and optionally a list of fields to fetch. By default, it will fetch all the fields the current user can read, which tends to be a huge amount.
#odooexternalapi #xmlrpc
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))
company_record = models.execute_kw(db, uid, password,'res.partner', 'read',[company], {'fields': ['name']})
print("compnay_record",company_record)




Other Videos By Cybrosys Technologies


2021-07-28Preview Accounting Entries and Create Automatic Entries for Selected Journal Items in Odoo 14
2021-07-27How to use unlink method() | Odoo External API | Odoo XMLRPC
2021-07-26How to install a module from settings in Odoo | How to install a Module in Odoo
2021-07-26A Demonstration Module in Odoo | Odoo 14 Functional Tutorial
2021-07-26How to make a field Mandatory in Odoo | Odoo Technical | Odoo Tutorial
2021-07-26How to use search_count method in Odoo | XML RPC | Odoo External API
2021-07-24Listing record fields | Odoo External API | Odoo XMLRPC
2021-07-23Manage Online Appointments in Odoo 14 | Odoo Functional Videos
2021-07-22Approvals Customization Using Odoo 14 Studio
2021-07-22How to use Odoo search_read () | Odoo XML RPC | External API
2021-07-22How to read records using Odoo XML RPC | Read records External API
2021-07-21How to manage URL in Odoo 14 | Odoo 14 Website
2021-07-20How to Customize and Add Fields in Kanban View using the Studio in Odoo 14?
2021-07-19How to update records in Odoo 14 | Using External API | Odoo XMLRPC
2021-07-19Report Subtotals in Odoo 14 | Odoo Accounting
2021-07-19How to Create a New Model using Studio in Odoo 14 | Odoo Studio
2021-07-18How to do Logging in Odoo 14 Using External API | Logging in Odoo 14 | Odoo XMLRPC
2021-07-17Inter-Warehouse Transfers in Inventory - Odoo 14 Inventory
2021-07-17How to Create a New Tab in a Form View Using Odoo 14 Studio?
2021-07-17Odoo 14 Purchase Goods Receipt Confirmation | Odoo Functional Tutorials
2021-07-17Odoo External API - Create records | XMLRPC | How to Create Records



Tags:
odoo xmlrpc
odoo web service
odoo connect external application
external application connect odoo
odoo development
how to delete record in odoo
how to delete external id in odoo
odooe external id of record
odoo create record
odoo write record
create record using xml file in odoo
odoo record external id
how to add id in xml file to create record in odoo
odoo delete record
find external id of record
external id of record
how to use name search method in odoo