You can use search function.
Search function takes a search domain, returns a recordset of matching records. Can return a subset of matching records (offset and limit parameters) and be ordered (order parameter):
search([('is_company', '=', True), ('customer', '=', True)])
search([('is_company', '=', True)], limit=1) give one record
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 2/23/15, 5:25 AM|
|Seen: 1712 times|
|Last updated: 3/16/15, 8:10 AM|