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.
This question has been flagged
1
Respondre
6408
Vistes
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Registrar-se| Related Posts | Respostes | Vistes | Activitat | |
|---|---|---|---|---|
|
|
0
de maig 15
|
5362 | ||
|
|
0
d’abr. 24
|
2705 | ||
|
|
2
de març 15
|
6590 | ||
|
|
0
de març 15
|
5736 | ||
|
|
2
de març 15
|
12529 |