When we are using list records field then it returns a large amount of meta-information (client programs also use list records field) which should be filtered before printing, string(the field's label) are the most interesting items for a human user and as it show the database value in list records for example you can see the below code.
models.execute_kw(
db, uid, password, 'res.partner', 'fields_get',
[], {'attributes': ['string', 'help', 'demo']})
{
"ean13": {
"type": "char",
"help": "BarCode",
"string": "EAN13"
},
"property_account_position": {
"type": "many2one",
"help": "Tfor test.",
"string": "demo"
},
"signup_valid": {
"type": "boolean",
"help": "",
"string": "Signup Token is Valid"
},
"date_localization": {
"type": "date",
"help": "",
"string": "Geo Localization Date"
},
"ref_companies": {
"type": "one2many",
"help": "",
"string": "Companies that refers to partner"
},
"sale_order_count": {
"type": "integer",
"help": "",
"string": "# of Sales Order"
},
"purchase_order_count": {
"type": "integer",
"help": "",
"string": "# of Purchase Order"
},
Note- fields_get() can be used to inspect a model's fields and check which ones seem to be of interest.
0 Comment(s)