Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
5095 Vues

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
Ignorer

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

Meilleure réponse

hello

you have to use many2one field like,

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

 and also make xml file for that field

Avatar
Ignorer
Publications associées Réponses Vues Activité
2
mars 15
6173
1
janv. 25
636
2
févr. 23
5797
0
mars 21
2494
2
juin 20
9965