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.
Pertanyaan ini telah diberikan tanda
1
Balas
6375
Tampilan
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
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar| Post Terkait | Replies | Tampilan | Aktivitas | |
|---|---|---|---|---|
|
|
0
Mei 15
|
5348 | ||
|
|
0
Apr 24
|
2701 | ||
|
|
2
Mar 15
|
6569 | ||
|
|
0
Mar 15
|
5716 | ||
|
|
2
Mar 15
|
12518 |