OCA / hr

Odoo Human Resources Addons
GNU Affero General Public License v3.0
218 stars 667 forks source link

hr_employee_ppe: error when assigning multiple PPE to an employee. #1352

Open azucenatrey opened 4 months ago

azucenatrey commented 4 months ago

Module

hr_employee_ppe

Describe the bug

When you assign multiple EPIs to an employee, the following error is returned: ''' Error while validating constraint Expected singleton: hr.employee.ppe(5, 6) ''' hr_ppe_error

To Reproduce

Affected versions: 12.0

Steps to reproduce the behavior:

  1. Step in employee form.
  2. Edit and add multiple PPEs.
  3. Save.

Expected behavior Save without error.

azucenatrey commented 4 months ago

Solution proposed in PR: https://github.com/OCA/hr/pull/1351