Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
3162 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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 ?

Awatar
Odrzuć
Autor

i want to add new field to all models automatically

just like the MAGIC_COLUMNS

But without modifying the ORM itself

Powiązane posty Odpowiedzi Widoki Czynność
0
sie 24
1202
1
lip 24
2014
1
mar 22
4792
0
mar 21
1975
0
maj 20
2398