On Sábado 25 Febrero 2012 10:38:44 Cédric Krier escribió: > 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.
I think data consistency should be imposed at model - database layer, at user aplication level ( gui ) the developer needs to have the tools to provide the best user interface for users. -- Felipe Alvarez Harnecker [email protected] - 9.874.60.17 -- [email protected] mailing list
