← Back to team overview

openerp-community team mailing list archive

Re: set context depending on the current record in ir.actions.act_window

 

>
> If you do [('foo_ids', 'in', [id,id2])] on a one2many, it checks one for
> which an in id foo_ids is in (id, id2). So this is what you expect I guess.
>
> When you do [('foo_ids', '=', id)], I think it also searches for a
> one2many containing an id (not sure, to be tested), so this is also what
> you expect.
>

I didn't know that one, I will test and answer here (currently pretty busy,
but later). Thanks.

>
> As far as I know, the only limitation is that we can not do a ==. So, I
> think this is not possible:
>   [('foo_ids', '=', [id,id2])]
> But I never had a scenario when I needed that. So, unless we have a real
> need, this is not a big issue.
>
>
> --
> Fabien Pinckaers
> CEO OpenERP
> Chaussée de Namur 40
> B-1367 Grand-Rosière
> Belgium
> Phone: +32.81.81.37.00
> Fax: +32.81.73.35.01
> Web: http://openerp.com
>

Follow ups

References