Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Create odoo users using custom module

sharjeel ali shaukat
on 7/22/15, 7:43 AM 522 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'),



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

Drees Far
on 7/22/15, 10:06 AM
chirag jogi
On 7/24/15, 8:13 AM


you have to use many2one field like,

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

 and also make xml file for that field

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 7/22/15, 7:43 AM
Seen: 522 times
Last updated: 7/7/16, 4:53 AM