minor fix
This commit is contained in:
parent
7c1ab4310a
commit
6bafbe95d6
|
@ -1624,7 +1624,7 @@ class PayrollGroup(metaclass=PoolMeta):
|
|||
Contract = Pool().get('staff.contract')
|
||||
dom_contract = get_dom_contract_period(self.start.period.start, self.start.period.end)
|
||||
contracts = Contract.search(dom_contract)
|
||||
employee_ids = list(set(e.id for e in contracts))
|
||||
employee_ids = list(set(contract.employee.id for contract in contracts))
|
||||
if employee_ids:
|
||||
dom.append(('id', 'in', employee_ids))
|
||||
if self.start.department:
|
||||
|
|
Loading…
Reference in New Issue