Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
5047 Vistas

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
Descartar

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

Mejor respuesta

hello

you have to use many2one field like,

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

 and also make xml file for that field

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
mar 15
6153
1
ene 25
598
2
feb 23
5660
0
mar 21
2463
2
jun 20
9932