over 9 years ago
Paginations is the most important for odoo framework and its help to produce the inventory value of database and By default a search will return the ids of all records matching the condition, which may be a huge number. offset and limit parameters are available to only retrieve a subset of all matched records and show the database value in res.partner records.
For example you can see below code:
- models.execute_kw(db, uid, password,
- 'res.partner', 'search',
- [[['is_company', '=', True], ['customer', '=', True]]],
- {'offset': 10, 'limit': 5})
- [13, 20, 30, 22, 29]
models.execute_kw(db, uid, password, 'res.partner', 'search', [[['is_company', '=', True], ['customer', '=', True]]], {'offset': 10, 'limit': 5}) [13, 20, 30, 22, 29]
0 Comment(s)