Odoo Help

Welcome!

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.

0

How can we add an entry to res.partner when a user or an employee is created?

By
Deepak Krishna
on 10/30/15, 1:52 AM 381 views

Is it possible to enter the user name to res.partner?plz give me an answer?

just for clarification, you want to automatically create a system user and link it to the regarding employee, when you create a new employee. Am I correct?

Baiju
on 10/31/15, 9:12 AM
2

Serpent Consulting Services Pvt. Ltd.

--Serpent Consulting Services Pvt. Ltd.--
4341
| 6 6 8
Gandhinagar, India
--Serpent Consulting Services Pvt. Ltd.--

Serpent Consulting Services Pvt. Ltd. Your Odoo/OpenERP Solution, just an email away!

Serpent Consulting Services Pvt. Ltd.
On 10/30/15, 3:33 AM

Hello Deepak,

When you create user, system will create the partner automatically by using user's name.

So partner will have same name as user. The reason behind this is that, user (res.users) inherits the partner (res.partner) object.

Hope this will help you.

am creating new module having the user details to add and it is not inheriting from res.partner or any res.user.So for adding my custom user to the res.partner table i need to write a function rite.So can u help me with that..plzz

Deepak Krishna
on 11/3/15, 4:47 AM
0

Akhil P Sivan

--Akhil P Sivan--
3423
| 5 3 6
Kochi, India
--Akhil P Sivan--

Interested in exploring Odoo both technically & functionality wise.

email-id : akhilpsivan01@gmail.com

Akhil P Sivan
On 10/31/15, 10:07 AM

Hi Deepak,

I think one option to override the write() in model hr.employee, make the required entries to res.partner in the function and you can set a hidden boolean field in hr.employee to check within the write() whether the entry is already made once, so that it doesn't happen again on editing the record.

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)

Stats

Asked: 10/30/15, 1:52 AM
Seen: 381 times
Last updated: 10/31/15, 10:07 AM