Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
3481 Visualizações

how to add new magic columns to all models?

i want to add new field to all models automatically, just like the MAGIC_COLUMNS.

But without modifying the ORM itself

Avatar
Cancelar
Melhor resposta

LOG_ACCESS_COLUMNS and MAGIC_COLUMNS added to all models automatically by ORM 
https://github.com/odoo/odoo/blob/13.0/odoo/models.py#L241
can you explain bit more what do you want to achieve ?

Avatar
Cancelar
Autor

i want to add new field to all models automatically

just like the MAGIC_COLUMNS

But without modifying the ORM itself

Publicações relacionadas Respostas Visualizações Atividade
0
ago. 24
1467
1
jul. 24
2371
1
mar. 22
5177
0
mar. 21
2228
0
mai. 20
2639