changeset 99d880f868c9 in modules/marketing_automation:6.2
details:
https://hg.tryton.org/modules/marketing_automation?cmd=changeset&node=99d880f868c9
description:
Return redirect and execute report with id
issue11227
review366731002
(grafted from 712dd652a666525e056f8ce985ea9e0a3e8d7434)
diffstat:
routes.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r ff3d82c51495 -r 99d880f868c9 routes.py
--- a/routes.py Mon Nov 01 17:22:13 2021 +0100
+++ b/routes.py Sat Feb 12 02:35:41 2022 +0100
@@ -21,12 +21,12 @@
record.block()
next_ = request.args.get('next')
if next_:
- redirect(next_)
+ return redirect(next_)
data = {
'model': Record.__name__,
}
with Transaction().set_context(language=record.language):
- ext, content, _, _ = Report.execute([record], data)
+ ext, content, _, _ = Report.execute([record.id], data)
assert ext == 'html'
return Response(content, 200, content_type='text/html')