콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
5737 화면

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.

아바타
취소
관련 게시물 답글 화면 활동
2
8월 22
13991
1
7월 24
1482
1
3월 15
5234
1
9월 23
2168
1
8월 19
6034