Remove unused report_type
This commit is contained in:
+1
-1
@@ -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',
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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]})
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user