Minor fix

This commit is contained in:
Oscar 2021-08-14 12:09:43 -05:00
parent 6e27ec27e5
commit cbd90e3c01
1 changed files with 2 additions and 3 deletions

View File

@ -1278,8 +1278,7 @@ class PayrollSheetReport(Report):
@classmethod
def get_domain_payroll(cls, data):
dom = [('period', 'in', data['periods'])]
return dom
return []
@classmethod
def get_context(cls, records, header, data):
@ -1294,7 +1293,7 @@ class PayrollSheetReport(Report):
periods = Period.browse(data['periods'])
periods_names = [p.name + ' / ' for p in periods]
dom_payroll.append([('period', 'in', data['periods'])])
print('Aqui....', dom_payroll)
payrolls = Payroll.search(dom_payroll,
order=[('employee.party.name', 'ASC'), ('period.name', 'ASC')]
)