minor fix
This commit is contained in:
parent
2e68aa6a29
commit
4226478216
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in New Issue