Hey Cédric, Is it possible to enumerate the general cases where this ids conversion is needed? I think knowing the use cases would really make choosing a design easier. Right now I can't tell what methods would be affected.
Is this conversion meant to be used arbitrarily by a module developer? Seems more likely that it is used internally by base tryton methods, is that right? -Ian On Dec 4, 2:54 am, Cédric Krier <[email protected]> wrote: > Hi, > > The issue1776 [1] brings an issue in the design of searching for missing > method on the inherited parent. The issue is that we try to convert ids from > children into ids of parents but all methods arguments don't start with a list > of ids (or single id) as argument. So we need to find a way to apply this > transformation only to correct methods. > > A first option is to do introspection like we did for Function fields with > "names" as argument [2]. > > A second option is to require to define on the Model which methods need this > transformation (but this will break the non-API change rule for series). > > So what is your opinions? Have you a better solution? > > [1]https://bugs.tryton.org/roundup/issue1776 > [2]http://hg.tryton.org/trytond/file/1b6746de69ff/trytond/model/fields/f... > > -- > 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/ > > application_pgp-signature_part > < 1KViewDownload -- [email protected] mailing list
