Community mailing list archives

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

Camptocamp SA, Yannick Vaucher - Camptocamp
- 10/08/2014 05:03:45 is to create a function that will loop on each record of you record set. It only saves you the "for rec in self:"
Nevertheless self in decorated method will still be a recordset with a len of 1 so nothing prevent you from doing self.browse() in it.

You just have to remind that what you return in will be a list.


On Sat, Oct 4, 2014 at 12:28 PM, Maxim Litnitskiy <> wrote:

2014-10-03 15:30 GMT+04:00 Yannick Vaucher <>:
Also, you can use self.browse() to create an empty recordset that you could lately populate when filtering.

In case when it's not, right?

Post to:

Yannick Vaucher
Business Solutions Software Developer

Camptocamp SA
PSE A, CH-1015 Lausanne
Phone: +41 21 619 10 30
Office: +41 21 619 10 10