Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to get count records in OpenERP/Odoo ?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 2.49k
    Comment on it

    In count records retrieve a list of records and count them, search_count() can be used to retrieve only the number of records matching the query. It takes the same domain filter as search() and no other parameter.For example code is like below.

    models.execute_kw(db, uid, password,
        'res.partner', 'search_count',
        [[['is_company', '=', True], ['customer', '=', True]]])
    **Note-** stored data could have changed between the calls

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: