On 03 Aug 22:53, Sergi Almacellas Abellana wrote:
> El 25/07/14 a les 18:42, Guillem Barba Domingo ha escrit:
> >Another (provably better) option is that "generic getter/setter" get the
> >domain to apply to find product.template.company instance from a function.
> >By default it search by record+company but "product_cost_by_warehouse"
> >extend it to search also by warehouse.
> >
> We can use the same method as product_by_location uses to dinamically define
> the grouping, so you can group by company, company/warehouse, whatever field
> you want.
> 
> >I think 95% of cases fit perfect with generic getter/setter and have a
> >mixin reduces a lot the code of modules. If we think a little bit the
> >design we can find a good solution for the rest 5%.
> >IMHO, of course
> Agree on this. Also if you need custom specific stuff, you can override the
> getter/setter, as proposed by Guillem.

I think you don't understand the actual problem of property because you
are just proposing the same solution with your Mixin.
The problem is at the data model and it could only be fixed by having
custom data model for each case.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: cedric.kr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Attachment: pgp0cTdQEJVwS.pgp
Description: PGP signature

Reply via email to