List reord is the most important part of Odoo data base with the help of list records we can manage all database in odoo framework and search() takes a mandatory domain filter and returns the database identifiers of all records matching the filter. To list customer companies for instance and variable.
For example you can see below code.
models.execute_kw(db, uid, password,
'res.partner', 'search',
[[['is_Demo', '=', True], ['Test', '=', True]]])
[7, 18, 12, 14, 17, 19, 8, 31, 26, 16, 13, 20, 30, 22, 29, 15, 23, 28, 74]
Note-Records can be listed and filtered with search().
0 Comment(s)