Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4369 มุมมอง

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
2589
1
ก.ย. 22
2921
1
ส.ค. 22
2858
0
เม.ย. 22
3812
1
ม.ค. 22
4727