Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2738 Visualizzazioni

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


Avatar
Abbandona
Risposta migliore

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.

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
3
nov 24
29986
0
dic 21
2314
0
apr 15
4609
2
mar 15
10402
1
mar 15
3941