Re: [tryton] proteus: is it possible to dynamically add/remove simple field to existing model
Le 23/09/2017 à 22:41, Cédric Krier a écrit : No, I'm only answering to the removing a field, adding is possible and the basis of Tryton modularity. OK, noted. Works fine to add/remove programatically a module with the field. No problem then manually dropping the field afterwards with psql. cheers, -- Richard PALO -- 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/cb9858f6-82ff-025c-c7d6-f3db0055369f%40free.fr.
Re: [tryton] proteus: is it possible to dynamically add/remove simple field to existing model
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.
Re: [tryton] proteus: is it possible to dynamically add/remove simple field to existing model
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... Or am I greatly misunderstanding something here? -- Richard PALO -- 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/3b91f113-c9b9-2b8b-feb4-633aa1f3cf04%40free.fr.
Re: [tryton] proteus: is it possible to dynamically add/remove simple field to existing model
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. -- 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/20170923164303.GB3622%40kei.
[tryton] proteus: is it possible to dynamically add/remove simple field to existing model
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. Or is the only way by adding a custom module which then can be removed when done. Any pointers are welcome. -- Richard PALO -- 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/5843239c-cb18-83aa-b97c-08473e209088%40free.fr.