On 2017-09-23 19:09, Richard PALO wrote: > Le 23/09/2017 à 18:43, Cédric Krier a écrit : > > On 2017-09-23 18:16, Richard PALO wrote: > >> As the title indicates, I'm interested to know if one can add/remove a > >> persistent > >> field (simple, non relational... like an integer) to an existing model > >> with proteus. > > > > Tryton enforce data integrity so a client can not modify the data model. > > > >> Or is the only way by adding a custom module which then can be removed > >> when done. > > > > This sounds wrong and I do not even know if it is possible to do it > > because module has only access to subclasses of the Model. > > > I figured as much for the integrity bit, though I thought the question should > be asked to be sure. > > Unfortunately I don't understand the second response, are you saying that > subclassing an > existing class and adding a persistent field is not possible? (e.g. an > additional integer > field on account.move.line) Activate to add, then deactivate to remove...
No, I'm only answering to the removing a field, adding is possible and the basis of Tryton modularity. -- Cédric Krier - B2CK SPRL Email/Jabber: cedric.kr...@b2ck.com Tel: +32 472 54 46 59 Website: http://www.b2ck.com/ -- You received this message because you are subscribed to the Google Groups "tryton" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/20170923204150.GC3622%40kei.