Community mailing list archives

community@mail.odoo.com

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

by
Pedro M. Baeza
- 09/25/2014 13:50:09
You still need browse if you have to get the browse_record for an ID-XML reference or for a result of an SQL query or a lot of other situations...

Regards.

2014-09-25 16:40 GMT+02:00 Jean-Sébastien Suzanne <jssuzanne@anybox.fr>:


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

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