On 04/03/11 11:43 +0100, Mathias Behrle wrote: > * Betr.: " Re: [tryton-dev] ir.default removal" (Thu, 3 Mar 2011 22:58:05 > +0100): > > > > The feature to enable an user to adapt the application to his preferences > > > is > > > still very attractive for me. Wouldn't it be able to harden the feature to > > > only offer per user and company settings without completely removing it? > > > > The current design makes the enforcement very difficult and perhaps > > impossible because: > > > > - the dialog box is design in the client (so no module customization) > > > > - the database schema is very simplistic: > > - value: Text field > > - clause: Text field > > I completely agree, that this feature may not supersede application rules. > OTOH > for me it *is* a real feature to have such a possibility, that lets the user > adapt the application to his ususal needs. Whenever I showed it to > users/customers they were excited to have such a solution, that is rarely > encountered in other applications. > > So, if ever possible, it would be nice to have a user driven model, that > > - follows access rules > - is multi-company > - probably should only work on a subset of models (selection, o2m, ...)
The only way to enforce correctly the "subset of models" is to forbide every thing and define what is allow. So who is able to define which fields can be allowed according to Model constraint, workflow etc.? It is a developper. So the developper will add a field somewhere (Company, User, Singleton) which will containt the customized default value. Don't you find it is not logical that to define what is the default invoicing method for sale, you should create a new sale order, set the default value and cancel the sale creation. Instead of open company and set the value on a field named "Default invoicing method". > > > - it is not possible to add business rules because it is defined in > > deeply > > in the kernel > > Business rules should indeed be enforced in a completely other way. By business rules, I'm talking about invoicing method, product creation (accounting stuff from category or not) etc. Default value are part of the business rules. -- 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/
pgpGcEUFHjBwn.pgp
Description: PGP signature
