minor fix

This commit is contained in:
wilson gomez sanchez 2021-02-19 19:06:38 -05:00
parent ee43beb41b
commit fe6a75d795
1 changed files with 2 additions and 1 deletions

View File

@ -1941,7 +1941,8 @@ class PayrollFix(Wizard):
MoveLine = pool.get('account.move.line')
payrolls = Payroll.search([
('state', '=', 'posted'),
('id', 'in', context_ids)
('id', 'in', context_ids),
('move', '=', 'draft'),
])
for p in payrolls: