UPDATE hr_loans_salary_advance
This commit is contained in:
parent
34352081dc
commit
a3d5b03894
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue