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

i want to create a user using my custom module, for i am inheriting res.users and res.partners in my custom module but nothing happens it gives me error

Here is the code


class tact_customer(osv.osv):

_name = 'tact.customer'

_inherit =['res.partner','res.users']

_columns = {

'longitude': fields.char('Longitude',size=40,required=True, help='longitude'),

'latitude': fields.char('Latitude',size=40,required=True, help='latitude'),

}

customer()

아바타
취소

Sorry but your class name is tact_customer so what is the customer() in the end?

베스트 답변

hello

you have to use many2one field like,

'user' : fields.many2one('res.partner','User'),

 and also make xml file for that field

아바타
취소
관련 게시물 답글 화면 활동
2
3월 15
6281
2
7월 25
828
2
2월 23
6313
0
3월 21
2612
2
6월 20
10112