diff --git a/bin/addons/base/ir/ir.xml b/bin/addons/base/ir/ir.xml
index 3a9ed475901..8d0cdbca54e 100644
--- a/bin/addons/base/ir/ir.xml
+++ b/bin/addons/base/ir/ir.xml
@@ -1099,6 +1099,7 @@
+
diff --git a/bin/addons/base/ir/wizard/__init__.py b/bin/addons/base/ir/wizard/__init__.py
index f8806ffa1a5..c3b8f4f51e8 100644
--- a/bin/addons/base/ir/wizard/__init__.py
+++ b/bin/addons/base/ir/wizard/__init__.py
@@ -28,6 +28,6 @@
#
##############################################################################
import wizard_menu
-
+import create_action
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/bin/addons/base/ir/wizard/create_action.py b/bin/addons/base/ir/wizard/create_action.py
new file mode 100644
index 00000000000..804fda2a1ea
--- /dev/null
+++ b/bin/addons/base/ir/wizard/create_action.py
@@ -0,0 +1,92 @@
+# -*- encoding: utf-8 -*-
+##############################################################################
+#
+# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
+#
+# $Id$
+#
+# WARNING: This program as such is intended to be used by professional
+# programmers who take the whole responsability of assessing all potential
+# consequences resulting from its eventual inadequacies and bugs
+# End users who are looking for a ready-to-use solution with commercial
+# garantees and support are strongly adviced to contract a Free Software
+# Service Company
+#
+# This program is Free Software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+##############################################################################
+
+import wizard
+import pooler
+import time
+
+action_type = '''
+'''
+
+action_type_fields = {
+ 'type': {'string':"Start date",'type':'selection','required':True ,'selection':[('ir.actions.report.xml','Open Report')]},
+}
+
+report_action = '''
+'''
+
+report_action_fields = {
+ 'report': {'string':"Select Report",'type':'many2one','relation':'ir.actions.report.xml', 'required':True},
+}
+
+class create_action(wizard.interface):
+
+ def _create_report_action(self, cr, uid, data, context={}):
+ pool = pooler.get_pool(cr.dbname)
+
+ reports = pool.get('ir.actions.report.xml')
+ form = data['form']
+
+ rpt = reports.browse(cr, uid, form['report'])
+
+ action = """
+action = {
+ 'type': 'ir.actions.report.xml',
+ 'model':'%s',
+ 'report_name': '%s',
+ 'ids': context['active_ids'],
+}""" % (rpt.model, rpt.report_name)
+
+ obj = pool.get('ir.actions.server')
+ obj.write(cr, uid, data['ids'], {'code':action})
+
+ return {}
+
+ states = {
+ 'init': {
+ 'actions': [],
+ 'result': {'type':'form', 'arch':action_type,'fields':action_type_fields, 'state':[('step_1','Next'),('end','Close')]}
+ },
+ 'step_1': {
+ 'actions': [],
+ 'result': {'type':'form', 'arch':report_action,'fields':report_action_fields, 'state':[('create','Create'),('end','Close')]}
+ },
+ 'create': {
+ 'actions': [_create_report_action],
+ 'result': {'type':'state', 'state':'end'}
+ },
+ }
+create_action('server.action.create')
+
+
diff --git a/bin/addons/base/ir/wizard/wizard_menu_view.xml b/bin/addons/base/ir/wizard/wizard_menu_view.xml
index b8becc8f9cd..40e84576b68 100644
--- a/bin/addons/base/ir/wizard/wizard_menu_view.xml
+++ b/bin/addons/base/ir/wizard/wizard_menu_view.xml
@@ -28,6 +28,12 @@
-
+