fix get lines pending

This commit is contained in:
Wilson Gomez 2023-10-02 09:48:13 -05:00
parent 7f547ef6bd
commit 60570c29e2
1 changed files with 5 additions and 2 deletions

View File

@ -531,8 +531,11 @@ class Liquidation(Workflow, ModelSQL, ModelView):
('account', '=', account_id),
('party', '=', employee.party.id),
('reconciliation', '=', None),
('move.origin', 'not ilike', 'staff.payroll'),
('move.origin', '=', None),
[
'OR',
('move.origin', 'not ilike', 'staff.payroll'),
('move.origin', '=', None),
]
]
lines1 = MoveLine.search(domain)
lines2 = []