CybroOdoo / CybroAddons

281 stars 641 forks source link

[Bug in Odoo 16 HR Payroll] - Error When Generate Payslip for employee #265

Open namnguyenphuong355 opened 1 year ago

namnguyenphuong355 commented 1 year ago

I have a when Generate Payslip for employee when Employee creates two leave with two time off types. For example:

namnguyenphuong355 commented 1 year ago

image

I tried a solution but it doesn't work well. -> Replace holiday = leave.holiday_id -> holiday = leave[:1].holiday_id However, when I generate Payslip in the above case, Only one type of leave can appear, but the total leave time is of 2 types of leave. Is it possible to calculate the total leave time of each type ?