Assign holidays to an employee

When I want to create a slip salary for an employee I have this message of error : IPlease assign Holiday List for Employee HR-EMP-00002 or their company Softia through Holiday List Assignment
Consultez le journal des erreurs tved6gbvpi pour plus de détails.

I have a holiday list into the company’s slip. I have created a leave policy, a leave assignment, a leave policy assignment, a leave period. I can’t see Holiday list assignment exactly name like this in the search. The holiday list in the employee’s slip is hidden and is not part of ERPNext v16 anymore. Does anyone has the same problem?

This error means no Holiday List is assigned to the employee.

From version 16 onwards, the field was removed from Employee and you must assign it using the doctype “Holiday List Assignment”: Holiday List Assignment

Create a new Holiday List Assignment, select the employee, choose the holiday list, set the from date, save and submit. After that, Salary Slip creation should work.