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

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
Cancelar
Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
3
nov. 24
29962
0
dez. 21
2307
0
abr. 15
4589
2
mar. 15
10394
1
mar. 15
3931