Skip to Content
मेन्यू
This question has been flagged
2 Replies
5150 Views

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()

Avatar
Discard

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

Best Answer

hello

you have to use many2one field like,

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

 and also make xml file for that field

Avatar
Discard
Related Posts Replies Views Activity
2
मार्च 15
6227
2
जुल॰ 25
764
2
फ़र॰ 23
6101
0
मार्च 21
2556
2
जून 20
10043