On 18/07/12 16:23 -0700, Tristian Paul Lopez Azuara wrote: > Hi all, I think the title sums it all, I want to display a function field > using a One2Many widget, > the reason for this is that I compute the the values of the list lazily > (Basically a list of dictionaries) > and I do not store them in the database, so there's no **id** to be > referenced, I'v tried implementing > said functionality, but I can't seem to set the correct return values for > the function field. No errors get > thrown if I return a list of numbers, which I suspect are used to reference > the One2Many relation, but > I also want to supply the values for each reference. > > How would this situation be approached?
You can not. You must provide ids, they can come from a Model based on a query if you want. -- 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/
pgpn1PlemBco9.pgp
Description: PGP signature
