[IMP] ir/wizard: removed the unused create_action wizard.
authorVo Minh Thu <vmt@openerp.com>
Mon, 19 Sep 2011 09:36:26 +0000 (11:36 +0200)
committerVo Minh Thu <vmt@openerp.com>
Mon, 19 Sep 2011 09:36:26 +0000 (11:36 +0200)
bzr revid: vmt@openerp.com-20110919093626-guayq71dbbkmdn90

openerp/addons/base/ir/wizard/__init__.py
openerp/addons/base/ir/wizard/create_action.py [deleted file]
openerp/addons/base/ir/wizard/wizard_menu_view.xml

index 99c6cdc..3f54955 100644 (file)
@@ -20,6 +20,5 @@
 ##############################################################################
 import wizard_menu
 import wizard_screen
-import create_action
 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
 
diff --git a/openerp/addons/base/ir/wizard/create_action.py b/openerp/addons/base/ir/wizard/create_action.py
deleted file mode 100644 (file)
index 335f7a5..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-# -*- coding: utf-8 -*-
- ##############################################################################
-#    
-#    OpenERP, Open Source Management Solution
-#    Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
-#
-#    This program is free software: you can redistribute it and/or modify
-#    it under the terms of the GNU Affero General Public License as
-#    published by the Free Software Foundation, either version 3 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 Affero General Public License for more details.
-#
-#    You should have received a copy of the GNU Affero General Public License
-#    along with this program.  If not, see <http://www.gnu.org/licenses/>.     
-#
-##############################################################################
-
-import wizard
-import pooler
-import time
-
-action_type =  '''<?xml version="1.0"?>
-<form string="Select Action Type">
-    <field name="type"/>
-</form>'''
-
-action_type_fields = {
-    'type': {'string':"Select Action Type",'type':'selection','required':True ,'selection':[('ir.actions.report.xml','Open Report')]},
-}
-
-report_action =  '''<?xml version="1.0"?>
-<form string="Select Report">
-    <field name="report" colspan="4"/>
-</form>'''
-
-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')
-
-
index 4d3e7e7..d99138d 100644 (file)
             </field>
         </record>
         <act_window context="{'model_id': active_id}" id="act_menu_create" name="Create Menu" res_model="wizard.ir.model.menu.create" target="new" view_mode="form"/>
-        <wizard 
-            id="wizard_server_action_create" 
-            model="ir.actions.server" 
-            name="server.action.create" 
-            string="Create Action"
-            menu="False"
-        />
     </data>
 </openerp>