Commit 684f7696 authored by Tomáš Peterka's avatar Tomáš Peterka

[accounting] Update Report Script to be consistent with handling at_date with...

[accounting] Update Report Script to be consistent with handling at_date with the others and to comply with RJS requirements
parent 1ccc7ad8
......@@ -5,7 +5,7 @@ portal = context.portal_url.getPortalObject()
from Products.ERP5Form.Report import ReportSection
request = context.REQUEST
at_date = request['at_date']
at_date = request['at_date'].latestTime()
section_category = request['section_category']
simulation_state = request['simulation_state']
role_filter_list = request.get('mirror_section_category_list', None)
......
......@@ -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