From f30b538665e8ecfd34ea80658321c5b0ce0cdbd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 19 Feb 2015 13:47:16 +0100 Subject: [PATCH] Set default printing option to action run by wizard issue4575 review10971002 --- tryton/gui/window/wizard.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tryton/gui/window/wizard.py b/tryton/gui/window/wizard.py index 4aea27df0d..1c73c38a78 100644 --- a/tryton/gui/window/wizard.py +++ b/tryton/gui/window/wizard.py @@ -107,6 +107,12 @@ class Wizard(object): def execute_actions(): for action in result.get('actions', []): + for k, v in [ + ('direct_print', self.direct_print), + ('email_print', self.email_print), + ('email', self.email), + ]: + action[0].setdefault(k, v) Action._exec_action(*action, context=self.context.copy()) if self.state == self.end_state: