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

when I get into write I do not see those values which were not edited in vals.get(). How do I manage to get those field values that were not edited by user and I need those fields for some validation.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

use ORM method browse.

Syntax :browse(cr, uid, select, context=None, list_class=None, fields_process=None)

Example :

def write(self, cr, uid, ids, vals, context=None):
    partner = self.browse(cr, uid, ids[0], context=context)
    #for example get first_name
    first_name=partner.first_name
    # all other field partner.field_name

Thank You.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ส.ค. 22
13983
1
ก.ค. 24
1472
1
มี.ค. 15
5223
1
ก.ย. 23
2165
1
ส.ค. 19
6032