Odoo Help


problem fetching all record_ids from table [Closed]

remi mores
on 7/19/13, 8:06 AM 1,141 views

The Question has been closed for reason: duplicate question

Ray Carnes
on 07/20/2013 01:56:56

i have a problem fetching existing rows in a table, (i checked with pgadmin)

agreement_model = self.pool.get('account.periodical_invoicing.agreement')

Returns an empty list??? From a table with existing records???


agreement_model = self.pool.get('account.periodical_invoicing.agreement')

When i specify an existing id i effectively get a browse record?

How can that be if search(cr,uid,[]) returns an empty list?

how is it possible that search returns no id's, but browse() decides to return a record (if i explicitly specify an id)?

I read this in the documentation:

search(cr, user, args, offset=0, limit=None, order=None, context=None, count=False)

args -- list of tuples specifying the search domain [('field_name', 'operator', value), ...].

Pass an empty list to match all records.

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 7/19/13, 8:06 AM
Seen: 1141 times
Last updated: 3/16/15, 8:10 AM