Commit 0e891f36 authored by Tomáš Peterka's avatar Tomáš Peterka

[erp5_accounting] RJS compatible Redirect instead of Render

parent d2c386b6
......@@ -8,6 +8,8 @@ request = container.REQUEST
for _ in range(line_count):
context.newContent(portal_type=line_portal_type)
request.set('portal_status_message',
translateString('Accounting Transaction Lines added.'),)
return getattr(context, form_id)()
return context.Base_redirect(
form_id,
keep_items={
'portal_status_message': translateString('Accounting Transaction Lines added.')
})
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