Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
4590 Visualizzazioni

I am trying to update all records of a table during the initialization of my module but I cannot figure out how to do it. I have read something about monkey patch and tried to implement it but not sure if it fits my case. What I want to do now is to get all the records of a certain database table during the initialization of the module itself and eventually make some changes to each one of them.

Avatar
Abbandona
Risposta migliore

You can use pre_init_hook  defined in odoo __manifest__.py file and 

'pre_init_hook': 'pre_init_hook',
and define method in __init__.py file and write update code accordingly
Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
mag 15
3660
0
apr 24
1364
2
mar 15
4687
0
mar 15
4030
2
mar 15
10737