The Documentation states that the various methods of the class openerp.osv.orm.BaseModel like browse, search, write, etc. can receive and return a single id/record.
Example: return value for browse method:
Return type: object or list of objects requested
Or select argument for browse method:
select -- id or list of ids.
Or return value for search method:
Returns: id or list of ids of records matching the criteria
I often have the feeling that this is not true and all methods allways expect and return lists.
Is my feeling wrong?
EDIT (in lack of comment functionality):
Thx, Mr. Reis. You are quite right! But is it also true for search?
EDIT:
Search always returns a list. The documentation is wrong. (Although the technical memento states it correctly).