openerp-expert-framework team mailing list archive
-
openerp-expert-framework team
-
Mailing list archive
-
Message #00403
Re: Accepting (int, long) apart from list
A Dilluns, 9 d'agost de 2010, P. Christeas va escriure:
> Currently, in the framework, it is only orm.read() that will return a
> different type of result if you call it with int(id) or list(ids) ..
So that's the thing. Core API does not support a list of ids in the write
function. Why should the same write function support that for only a single
module? I'm sure if we start modifying the function instead of the callers, we
will end up with a big mess. We will be force to use that ugly conversion
everywhere in the code unnecessarily.
--
Albert Cervera i Areny
http://www.NaN-tic.com
OpenERP Partners
Mòbil: +34 669 40 40 18
http://twitter.com/albertnan
http://albert-nan.blogspot.com
References