Set default printing option to action run by wizard

issue4575
review10971002
This commit is contained in:
Cédric Krier committed 2015-02-19 13:47:16 +01:00
1 parent f4881e38a5
commit f30b538665
1 file changed
+6
+6
View File
@@ -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: