跳至内容
菜单
此问题已终结
1 回复
4228 查看

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

相关帖文 回复 查看 活动
3
6月 23
2430
1
9月 22
2725
1
8月 22
2663
0
4月 22
3638
1
1月 22
4532