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