Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
5242 Widoki

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

Awatar
Odrzuć

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

Najlepsza odpowiedź

hello

you have to use many2one field like,

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

 and also make xml file for that field

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
mar 15
6296
2
lip 25
867
2
lut 23
6383
0
mar 21
2634
2
cze 20
10130