From 0c6a2c94b1b68e521e7338764affc55ae95d0b30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 26 Jan 2008 16:48:14 +0100 Subject: [PATCH] Remove unused report_type --- tryton/gui/main.py | 2 +- tryton/gui/window/view_form/view/form.py | 1 - tryton/gui/window/view_form/view/form_gtk/many2one.py | 2 +- tryton/gui/window/view_form/view/form_gtk/parser.py | 1 - 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tryton/gui/main.py b/tryton/gui/main.py index 216d542eaa..b9a743ad2e 100644 --- a/tryton/gui/main.py +++ b/tryton/gui/main.py @@ -495,7 +495,7 @@ class Main(object): def _action_shortcut(widget, action): ctx = rpc.session.context.copy() Action.exec_keyword('tree_open', {'model': 'ir.ui.menu', - 'id': action, 'ids': [action], 'report_type': 'pdf', + 'id': action, 'ids': [action], 'window': self.window}, context=ctx) user = rpc.session.user shortcuts = rpc.session.rpc_exec_auth_try('/object', 'execute', diff --git a/tryton/gui/window/view_form/view/form.py b/tryton/gui/window/view_form/view/form.py index d61e6574f9..982ee586fb 100644 --- a/tryton/gui/window/view_form/view/form.py +++ b/tryton/gui/window/view_form/view/form.py @@ -117,7 +117,6 @@ class ViewForm(ParserView): 'model': self.screen.name, 'id': obj_id, 'ids': [obj_id], - 'report_type': act.get('report_type', 'pdf'), } if atype == 'relate': obj_id = self.screen.current_model \ diff --git a/tryton/gui/window/view_form/view/form_gtk/many2one.py b/tryton/gui/window/view_form/view/form_gtk/many2one.py index 62597793e9..12a4deb33d 100644 --- a/tryton/gui/window/view_form/view/form_gtk/many2one.py +++ b/tryton/gui/window/view_form/view/form_gtk/many2one.py @@ -396,4 +396,4 @@ class Many2One(WidgetInterface): def click_and_action(self, atype): obj_id = self._view.modelfield.get(self._view.model) return Action.exec_keyword(atype, {'model': self.model_type, - 'id': obj_id or False, 'ids': [obj_id], 'report_type': 'pdf'}) + 'id': obj_id or False, 'ids': [obj_id]}) diff --git a/tryton/gui/window/view_form/view/form_gtk/parser.py b/tryton/gui/window/view_form/view/form_gtk/parser.py index 7245e5264e..77532a3752 100644 --- a/tryton/gui/window/view_form/view/form_gtk/parser.py +++ b/tryton/gui/window/view_form/view/form_gtk/parser.py @@ -56,7 +56,6 @@ class Button(object): 'model': self.form.screen.name, 'id': obj_id or False, 'ids': obj_id and [obj_id] or [], - 'report_type': 'pdf', }) else: raise Exception('Unallowed button type')