Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
4490 Представления

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
Аватар
Отменить
Related Posts Ответы Просмотры Активность
0
мая 15
3607
0
апр. 24
1323
2
мар. 15
4626
0
мар. 15
3902
2
мар. 15
10694