changeset 712dd652a666 in modules/marketing_automation:default
details:
https://hg.tryton.org/modules/marketing_automation?cmd=changeset&node=712dd652a666
description:
Return redirect and execute report with id
issue11227
review366731002
diffstat:
routes.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 01b7554d95f9 -r 712dd652a666 routes.py
--- a/routes.py Sat Dec 18 16:31:08 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')