Community mailing list archives

community@mail.odoo.com

Re: New api browse - what for if search returns record set?

by
Suzanne Jean-Sébastien
- 09/25/2014 07:58:53


2014-09-25 13:56 GMT+02:00 Maxim Litnitskiy <litnimaxster@gmail.com>:
Hi guys!
I have a simple question.
If now (new api)  search method  returns RecordSet why at all we can require browse??
Or I miss anything in concept?
I am doing:

for contact in self.env['res.partner'].search('my_search','=',True):
for contact in self.env['res.partner'].search([('my_search','=',True)]): 
   do contact.field = new_value

Am I right?
yes 

Thanks.

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--
Jean-Sébastien SUZANNE
jssuzanne@anybox.fr
06 51 35 50 50