Message 75577

Author
nicoe
Date
2022-04-10.20:21:52
Message id
75577

Content

* Cédric Krier  [2022-04-10 19:59 +0200]: 
>
>Cédric Krier <cedric.krier@b2ck.com> added the comment:
>
>On 2022-04-10 19:27, Nicolas Évrard wrote:
>> >Cédric Krier <cedric.krier@b2ck.com> 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.
History
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)