Message 75577

Message id


* Cédric Krier  [2022-04-10 19:59 +0200]: 
>Cédric Krier <> added the comment:
>On 2022-04-10 19:27, Nicolas Évrard wrote:
>> >Cédric Krier <> added the comment:
>> >
>> >As we discussed there is no valid case where the depend's should be computed
>> >in the `__setup__`.
>> I am not talking about that.
>> The scenario is:
>>      - someone has some modules installed. The different depends properties are
>>        cached
>>      - someone activate a new module that modifies the states of an existing
>>        field (eg adding some readonly conditions) adding some PYSON expression.
>> As the properties are cached the new fields might not be found in the depends
>> properties.
>When a new module is activated, the models are setup again and every
>field is deepcopied. So normally the original field should not any
>cached properties.

Indeed I forgot about the deepcopy, I guess we can close then.
Date User Action Args
2022-04-10 20:21:52nicoesetrecipients: + ced
2022-04-10 20:21:52nicoelinkissue11399 messages
2022-04-10 20:21:52nicoecreate

Showing 10 items. Show all history (warning: this could be VERY long)