跳至內容
選單
此問題已被標幟
2 回覆
5220 瀏覽次數

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
6282
2
7月 25
828
2
2月 23
6313
0
3月 21
2613
2
6月 20
10112