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

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
มี.ค. 15
6422
2
ก.ค. 25
974
2
ก.พ. 23
6729
0
มี.ค. 21
2727
How to get the job_id of the user_id แก้ไขแล้ว
2
มิ.ย. 20
10245