Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
4232 Представления

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

Аватар
Отменить
Лучший ответ

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
        }
}
Аватар
Отменить

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 Ответы Просмотры Активность
3
июн. 23
2430
1
сент. 22
2728
1
авг. 22
2665
0
апр. 22
3638
1
янв. 22
4533