콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
5297 화면

Hello,

I am trying to add related user to an already existing employee. Creating a new user automatically add employee record for the user and then I cannot add user to the existing employee as it causes error "A user cannot be linked to multiple employees in the same company.". To do so I have to delete employee record created automatically and then add the user to the existing employee record. 
Is there a way to not create a employee automatically from creating a user. Or when trying to add related user to employee and choosing "create and edit" option, it should create a user and link it to the employee instead of creating a new employee. 

I appreciate your help. 

아바타
취소

I am searching for a module with this behavior, please tell me the name of the custom module.

베스트 답변

Odoo doesn't create an Employee (hr.employee) record when you create a User (res.users) record.

If this is happening, please check custom modules and/or automations as this is not what happens out of the box.

https://github.com/odoo/odoo/blob/14.0/odoo/addons/base/models/res_users.py#L251

아바타
취소
작성자

Hi Ray, Thanks for the answer. You are right. A custom module was causing the issue.

관련 게시물 답글 화면 활동
2
3월 15
6811
4
3월 15
12083
1
11월 23
5903
1
3월 24
7083
1
11월 19
7542