changeset 37e04ad6ad13 in tryton:default
details: https://hg.tryton.org/tryton?cmd=changeset;node=37e04ad6ad13
description:
Add context to export URL
issue9304
review317361002
diffstat:
CHANGELOG | 2 ++
tryton/gui/window/win_export.py | 4 ++++
2 files changed, 6 insertions(+), 0 deletions(-)
diffs (23 lines):
diff -r 2f4283ee25cf -r 37e04ad6ad13 CHANGELOG
--- a/CHANGELOG Tue May 19 19:32:33 2020 +0200
+++ b/CHANGELOG Tue May 19 19:36:09 2020 +0200
@@ -1,3 +1,5 @@
+* Add context to export URL
+
Version 5.6.0 - 2020-05-04
* Bug fixes (see mercurial logs for details)
* Support link button on form
diff -r 2f4283ee25cf -r 37e04ad6ad13 tryton/gui/window/win_export.py
--- a/tryton/gui/window/win_export.py Tue May 19 19:32:33 2020 +0200
+++ b/tryton/gui/window/win_export.py Tue May 19 19:36:09 2020 +0200
@@ -446,6 +446,10 @@
query_string.append(('o', ','.join(filter(None, expr))))
query_string.insert(0, ('d', json.dumps(
domain, cls=JSONEncoder, separators=(',', ':'))))
+ if self.screen.local_context:
+ query_string.append(('c', json.dumps(
+ self.screen.local_context,
+ cls=JSONEncoder, separators=(',', ':'))))
iter_ = self.model2.get_iter_first()
while iter_: