changeset 8f665a846612 in modules/marketing_automation:6.0
details: 
https://hg.tryton.org/modules/marketing_automation?cmd=changeset&node=8f665a846612
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 0bf0253b5917 -r 8f665a846612 routes.py
--- a/routes.py Sat May 15 22:36:08 2021 +0200
+++ 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')
 

Reply via email to