minor fix

This commit is contained in:
Wilson Gomez 2023-03-27 09:18:17 -05:00
parent 2e68aa6a29
commit 4226478216
1 changed files with 5 additions and 2 deletions

View File

@ -1729,7 +1729,7 @@ class PayrollGroup(metaclass=PoolMeta):
}
Task.create([value])
return 'end'
super(PayrollGroup, self).transition_open_()
return super(PayrollGroup, self).transition_open_()
def get_employees_dom(self, employees_w_payroll):
dom = super(PayrollGroup, self).get_employees_dom(employees_w_payroll)
@ -2388,7 +2388,10 @@ class PayrollTask(ModelSQL, ModelView):
@classmethod
def create_payroll_async(cls):
task, = cls.search([('state', '=', 'active')], limit=1)
tasks = cls.search([('state', '=', 'active')], limit=1)
if not tasks:
return
task = tasks[0]
Payroll = Pool().get('staff.payroll')
Period = Pool().get('staff.payroll.period')