Help

0

How to trigger update/compute field after install new module?

Avatar
Zbik

Any suggestion is welcome :)

アバター
破棄
1 回答
0
Best Answer

you can use def init(self): method inside the model and put your code over there.

init method execute install and update time.

5 コメント
アバター
破棄
Avatar
Zbik
-

Thanks for the hint but it is not a solution. I need an update after the installation of any module, including the standard one.

ok, Did you mean record update form the API? then you can use ir.cron.

you need to describe more what exactly you want.

Avatar
Zbik
-

I did not give a specific example because it is complicated. It is associated with GDPR and needs an online response (exclude cron). I will give a similar, simple example:

A field that counts the number of other fields in the entire system.

Avatar
Piotr Cierkosz
-

module for internal auditing/monitoring?

Avatar
Zbik
-

Yes, the module is to help in managing activities related to GDPR.