Listing record fields | Odoo External API | Odoo XMLRPC

Subscribers:
29,300
Published on ● Video Link: https://www.youtube.com/watch?v=gi-zl3hWtRk



Category:
Guide
Duration: 2:22
464 views
4


fields_get() can be used to inspect a model’s fields and check which ones seem to be of interest. Because it returns a large amount of meta-information (it is also used by client programs) it should be filtered before printing, the most interesting items for a human user are 'string' (the field’s label), 'help' (a help text if available) and 'type' (to know which values to expect, or to send when updating a record)
#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))
a = models.execute_kw(db, uid, password, 'res.partner', 'fields_get',['name'], {'attributes': ['string', 'help', 'type']})
print ("list",a)




Other Videos By Cybrosys Technologies


2021-07-30Export and Import Modules Using Studio | Odoo 14 Studio
2021-07-29Automated Actions Using Odoo 14 Studio
2021-07-29How to Create & Share Promotional Codes in E-commerce Odoo 14?
2021-07-28Introspection & Inspection | Odoo External API | Odoo XMLRPC
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



Tags:
odoo
odoo erp
external application connect odoo
how to delete record in odoo
odoo connect external application
odoo relational fields using odoo studio
odoo delete record
odoo related field
odoo write record
odoo create record
external api configuartionin odoo
invisible fields based on condition in odoo
how to extend selection field in odoo
filter records
how to create related field in odoo
how to hide fields based on condition in odoo
search records in odoo