On 21/05/10 05:58 -0700, B.V. wrote: > In order to solve issue 1572 [0], we propose to create a new PYSON > statement For. > > Syntax is: For(key, obj) > key: string or integer or long > obj: list ou dictionary or Eval > Returns a list
I don't agree because it assumes that we add access to field values of any
depth which is wrong on the client. And the PYSON statements must be evaluated
the same way on both sides.
> So, in purchase/purchase.xml, act_shipment_form's domain
> [("id", "in", Eval('shipments'))]
> would become
> [("id", "in", For('id', Eval('shipments')))]
Instead Eval should evaluate one2many like many2many with a list of ids.
--
Cédric Krier
B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: [email protected]
Website: http://www.b2ck.com/
pgpuNiD2mlLy7.pgp
Description: PGP signature
