Commit bf006081 authored by Jérome Perrin's avatar Jérome Perrin

bank reconciliation: support the case where the user run "select all non...

bank reconciliation: support the case where the user run "select all non reconcile" and cancels just after.
parent 357776eb
...@@ -53,7 +53,12 @@ ...@@ -53,7 +53,12 @@
<value> <string>from Products.ERP5Type.Message import translateString\n <value> <string>from Products.ERP5Type.Message import translateString\n
\n \n
portal = sci[\'object\'].getPortalObject()\n portal = sci[\'object\'].getPortalObject()\n
portal.portal_catalog.searchAndActivate(\n \n
# We activate after BankReconciliation_selectNonReconciledTransactionList, in\n
# case the user cancels just after using this action. \n
portal.portal_catalog.activate(\n
queue=\'SQLQueue\', after_tag=\'BankReconciliation_selectNonReconciledTransactionList\'\n
).searchAndActivate(\n
portal_type=portal.getPortalAccountingMovementTypeList(),\n portal_type=portal.getPortalAccountingMovementTypeList(),\n
default_aggregate_uid=sci[\'object\'].getUid(),\n default_aggregate_uid=sci[\'object\'].getUid(),\n
method_args=(None, translateString(\'Cancelling bank reconciliation\')),\n method_args=(None, translateString(\'Cancelling bank reconciliation\')),\n
......
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