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

In openerp 7 Is it possible to functional field output shows before save the records and Editable functional field?

Avatar
Abbandona
Risposta migliore

I think yes.

Example on_change method:. link text

Just add any field for output in your result.

def custom_function(self, cr, uid, ids,  field_name_from_xml,  context=None):
    # work with input data
    #... your result in custom_addr
    custom_addr = 'Barcelona'
    return {
        'value': {
            'address': custom_addr # adress is must in your xml declaration in this case
        }
}
Avatar
Abbandona

but note that whenever you click save it will load data from function only

Yes, in this case not need to save the data, this works when you change the filed value... as I know :-)

Post correlati Risposte Visualizzazioni Attività
3
giu 23
2590
1
set 22
2922
1
ago 22
2858
0
apr 22
3812
1
gen 22
4728