Commit 0055578b authored by Nicolas Wavrant's avatar Nicolas Wavrant Committed by Eteri

erp5_payroll_l10n_fr: make selecting automatically Paysheets stricter

When aggregating Paysheets using a dialog, we don't want to aggregate deleted ones.
parent 0400938a
......@@ -11,6 +11,7 @@ catalog_kw = {'query': ComplexQuery(Query(start_date=">=%s" % from_date.strftime
Query(stop_date="<=%s" % to_date.strftime("%Y/%m/%d")),
Query(destination_trade_uid=Query(destination_trade_uid=destination_trade.getUid())),
Query(simulation_state='!=cancelled'),
Query(simulation_state='!=deleted'),
logical_operator="AND")}
paysheet_list = portal.accounting_module.searchFolder(portal_type="Pay Sheet Transaction", **catalog_kw)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment