horilla icon indicating copy to clipboard operation
horilla copied to clipboard

Job Position to multiple departmets dosent work

Open zgurea1 opened this issue 1 year ago • 4 comments

Bug Report

Description

Hi guys, i tried to make multiple departments, after that, i created the same job position for multiple departments.

Steps to Reproduce

  1. Create 2 departments
  2. Create 1 job position for the first department (Example: Manager -> Sales Dep)
  3. Create the same job position for different department (Example: Manager -> HR Dep)

Expected Behavior

To create the same job position for multiple departments.

Actual Behavior

Job Position with this Job position already exists.

Environment

The latest version.

Possible Solution

[If you have any ideas or suggestions on how to fix the issue, feel free to provide them here. This is optional.]

zgurea1 avatar Jul 09 '24 15:07 zgurea1

Hi @zgurea1 , The solution is updated in the latest commit. Please check and let us know if you face any issues.

With Regards, Team Horilla

horilla-opensource avatar Jul 10 '24 05:07 horilla-opensource

@horilla-opensource hi, its not working, if i duplicate the same job position in department it not showing error.

image

DETAIL: Key (job_position)=(Specialist principal) already exists.

Internal Server Error: /settings/job-position-creation/ Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/django/db/backends/utils.py", line 89, in _execute return self.cursor.execute(sql, params) psycopg2.errors.UniqueViolation: duplicate key value violates unique constraint "base_jobposition_job_position_key" DETAIL: Key (job_position)=(Specialist principal) already exists.

zgurea1 avatar Jul 10 '24 07:07 zgurea1

Hi @zgurea1 , Can you try by creating another record with new data and confirm whether its working?

With Regards, Team Horilla

horilla-opensource avatar Jul 19 '24 07:07 horilla-opensource

@horilla-opensource I mentioned to you the same error, also I have sent ss of the mistakes with the editable code that you had provided

sharukhkhan234 avatar Jul 22 '24 11:07 sharukhkhan234

Hi @sharukhkhan234 , Were you able to work around with it?

With Regards, Team Horilla

horilla-opensource avatar Aug 29 '24 04:08 horilla-opensource

Hi @sharukhkhan234 , We are closing this issue due to inactivity. It seems that there hasn't been any recent activity or discussion, and we believe it may have been resolved or is no longer relevant. If you feel this issue is still important and should be addressed, please feel free to reopen it or create a new issue with updated details.

With Regards, Team Horilla

horilla-opensource avatar Sep 24 '24 06:09 horilla-opensource