Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Paginations in Odoo9

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 398
    Comment on it

    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:

    1. models.execute_kw(db, uid, password,
    2. 'res.partner', 'search',
    3. [[['is_company', '=', True], ['customer', '=', True]]],
    4. {'offset': 10, 'limit': 5})
    5. [13, 20, 30, 22, 29]

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Reset Password
Fill out the form below and reset your password: