On 25/02/12 09:45 -0300, Felipe Alvarez Harnecker wrote:
> On Sábado 25 Febrero 2012 06:52:02 Cédric Krier escribió:
> > No, it is not possible because the parent may not be saved in the
> > database.
> > By the way, the plan is to remove context on fields since we have the
> > domain inversion.
> 
> It would be very nice if one can access form data at any time. ( i think it 
> is esential for a 
> development framework )

I don't understand what you mean.

> If you remove context in fields, how coud be  default_ implemented  depending 
> on parent data with 
> domains ???

I could not. After 6 years of experience with this framework design, I
know that such behaviors are always wrong because they generate
inconsistency. For example, if you make a default value depends on the
value of a field on "parent", what will happens if you change the value
of the "parent"? The default value of the line is no more consisting.
Indeed it is the all design that is not consisting. So as a framework,
Tryton must encourage good practice and design.

-- 
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: pgpu1IGoFyGew.pgp
Description: PGP signature

Reply via email to