İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
4378 Görünümler

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

Avatar
Vazgeç
En İyi Yanıt

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
Vazgeç

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
3
Haz 23
2601
1
Eyl 22
2944
1
Ağu 22
2880
0
Nis 22
3823
1
Oca 22
4743