UPDATE hr_loans_salary_advance

This commit is contained in:
manar 2025-02-25 14:03:18 +02:00
parent 34352081dc
commit a3d5b03894
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ class PayslipMonthlyReport(models.TransientModel):
dom += [('employee_id', 'in', self.employee_ids.ids)]
emp_ids = [r.employee_id.id for r in self.env['hr.contract'].search(dom)]
domain = [('paid', '=', True), ('payment_date', '>=', self.date_from), ('payment_date', '<=', self.date_to),
('deduction_line.employee_id', 'in', emp_ids)]
('deduction_line.employee_id', 'in', emp_ids), ('advance_payment', '!=', True)]
if self.loan_ids:
domain += [('deduction_line.request_type.id', 'in', self.loan_ids.ids)]
return self.env['loan.installment.line'].search(domain)