コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4591 ビュー

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.

アバター
破棄
最善の回答

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
アバター
破棄
関連投稿 返信 ビュー 活動
0
5月 15
3660
0
4月 24
1367
2
3月 15
4688
0
3月 15
4031
2
3月 15
10737