A Dissabte, 10 de març de 2012 14:47:01, Cédric Krier va escriure:
> On 10/03/12 14:32 +0100, Albert Cervera i Areny wrote:
> > To be sincere, I don't like my own proposal, and it has it issues with
> > models that have required Many2One fields. I don't really know how to do
> > that smartly but I feel it would benefit us to have something to check
> > those basic operations easily. Note, for example, that we do not have
> > tests for such operations in a model as important as product.product.
> >
> > So what I'd like is to have more brains giving it a thought. What do you
> > think? Would it be worth it? Some cool ideas anyone?
>
> For me, it is not useful to test every Models if they don't override one
> of the basis methods.
> Moreover, I thought about the API of the CRWD+B methods and I think
> finnaly that having them working with single id is not really useful and
> inheritage more complicate.
> So my idea will be to limit them to list of ids and replace single id
> calls by something like:
>
> new_id, = self.create([{}])
> record, = self.browse([id])
That would ease inheritance quite a bit. In that case, there's no need for my
proposal, I think.
--
Albert Cervera i Areny
http://www.NaN-tic.com
Tel: +34 93 553 18 03
http://twitter.com/albertnan
http://www.nan-tic.com/blog
--
[email protected] mailing list