Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
2761 Переглядів

I have seen some decorators that are used to save or write, and others work with change events of the forms...

Is there a way to execute a method on read call for a model?, i.e., when the model is called for read records, because I need to process the data before displaying it. 

My model is only a table, no views, no froms, but I call if from come another module as need


Аватар
Відмінити
Найкраща відповідь

Hi Jose:

There is no decorator for read. But, you can define a computed field that does the required pre-processing of the data and use the computed field in your custom module.

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
3
лист. 24
30029
0
груд. 21
2327
0
квіт. 15
4654
2
бер. 15
10412
1
бер. 15
3961