Commit 8fe6d7ca authored by Romain Courteaud's avatar Romain Courteaud

WIP [erp5_accounting] Active actions for ERP5JS

parent c7a16d75
......@@ -16,13 +16,13 @@
<key> <string>categories</string> </key>
<value>
<tuple>
<string>action_type/object_button</string>
<string>action_type/object_jio_button</string>
</tuple>
</value>
</item>
<item>
<key> <string>category</string> </key>
<value> <string>object_button</string> </value>
<value> <string>object_jio_button</string> </value>
</item>
<item>
<key> <string>condition</string> </key>
......@@ -30,7 +30,9 @@
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
<value>
<none/>
</value>
</item>
<item>
<key> <string>icon</string> </key>
......
......@@ -42,9 +42,12 @@ if uids:
request.set('total_selected_amount', total_selected_amount)
if update:
request.set('portal_status_message', Base_translateString('Updated'))
return context.AccountingTransactionModule_viewGroupingFastInputDialog(request)
context.Base_updateDialogForm()
return context.Base_renderForm(
'AccountingTransactionModule_viewGroupingFastInputDialog',
REQUEST=request,
keep_items={'portal_status_message': Base_translateString('Updated')}
)
# otherwise, try to group...
if grouping == 'grouping':
......@@ -124,5 +127,8 @@ else:
# make sure nothing will be checked next time
portal.portal_selections.setSelectionCheckedUidsFor(list_selection_name, [])
request.set('portal_status_message', psm)
return context.AccountingTransactionModule_viewGroupingFastInputDialog(request)
return context.Base_redirect(
'AccountingTransactionModule_viewGroupingFastInputDialog',
REQUEST=request,
keep_items={'portal_status_message': psm}
)
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