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.
Esta pregunta ha sido marcada
1
Responder
6427
Vistas
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
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Inscribirse| Publicaciones relacionadas | Respuestas | Vistas | Actividad | |
|---|---|---|---|---|
|
|
0
may 15
|
5388 | ||
|
|
0
abr 24
|
2717 | ||
|
|
2
mar 15
|
6696 | ||
|
|
0
mar 15
|
5751 | ||
|
|
2
mar 15
|
12593 |