CybroOdoo / OpenHRMS

GNU Affero General Public License v3.0
137 stars 223 forks source link

A user cannot be linked to multiple employees in the same company #82

Open rinaz opened 2 years ago

rinaz commented 2 years ago

Hi,

Findings

These are the steps to reproduce the issue:

  1. Creating a new employee through the recruitment process; click on Create employee button.
  2. Go to the employee profile > HR settings tab > Related user.
  3. Enter a new user name.
  4. Click on Save.
  5. The error "A user cannot be linked to multiple employees in the same company" pops up.

Thanks,

Senpaixyz commented 3 months ago

Same issue: when you create a User and connect it to an Employee, everything works fine. However, if you create an Employee first and then a User, an error occurs.