Skip to Content
Menu
This question has been flagged
1 Odpoveď
4376 Zobrazenia

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

Avatar
Zrušiť
Best Answer

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
Zrušiť

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

Related Posts Replies Zobrazenia Aktivita
3
jún 23
2596
1
sep 22
2937
1
aug 22
2874
0
apr 22
3820
1
jan 22
4739