Am using Odoo 10. And I want to execute some code after all modules have loaded and all tables have been created.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Financeiro
- Inventário
- PoS
- Project
- MRP
Esta pergunta foi sinalizada
1
Responder
5090
Visualizações
odoo/modules/loading.py
there is register_hook function that might help. to see an example of it: see base/res/res_lang.py:80
# STEP 8: call _register_hook on every model
for model in env.values():
model._register_hook()
Está gostando da discussão? Não fique apenas lendo, participe!
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscreva-sePublicações relacionadas | Respostas | Visualizações | Atividade | |
---|---|---|---|---|
|
3
jul. 25
|
2124 | ||
|
3
mai. 25
|
3712 | ||
|
2
jun. 25
|
4185 | ||
|
1
mar. 23
|
2472 | ||
|
0
jun. 21
|
2421 |