Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
4368 Ansichten

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

Avatar
Verwerfen
Beste Antwort

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
Verwerfen

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 :-)

Verknüpfte Beiträge Antworten Ansichten Aktivität
3
Juni 23
2589
1
Sept. 22
2921
1
Aug. 22
2858
0
Apr. 22
3812
1
Jan. 22
4727