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])

-- 
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/

Attachment: pgpNsPaXTjTxn.pgp
Description: PGP signature

Reply via email to