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() ...@@ -5,7 +5,7 @@ portal = context.portal_url.getPortalObject()
from Products.ERP5Form.Report import ReportSection from Products.ERP5Form.Report import ReportSection
request = context.REQUEST request = context.REQUEST
at_date = request['at_date'] at_date = request['at_date'].latestTime()
section_category = request['section_category'] section_category = request['section_category']
simulation_state = request['simulation_state'] simulation_state = request['simulation_state']
role_filter_list = request.get('mirror_section_category_list', None) role_filter_list = request.get('mirror_section_category_list', None)
......
...@@ -8,6 +8,8 @@ request = container.REQUEST ...@@ -8,6 +8,8 @@ request = container.REQUEST
for _ in range(line_count): for _ in range(line_count):
context.newContent(portal_type=line_portal_type) context.newContent(portal_type=line_portal_type)
request.set('portal_status_message', return context.Base_redirect(
translateString('Accounting Transaction Lines added.'),) form_id,
return getattr(context, 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