← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 485738] Re: Budget Import function not working

 

** Changed in: openobject-client-web
       Status: Fix Committed => Fix Released

-- 
Budget Import function not working
https://bugs.launchpad.net/bugs/485738
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Web Client: Fix Released

Bug description:
While importing in the budget 
 Error-------------


<type 'exceptions.NameError'>	Python 2.5.2: /usr/bin/python
Fri Nov 20 16:43:19 2009

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
 /usr/lib/python2.5/site-packages/CherryPy-3.1.2-py2.5.egg/cherrypy/_cprequest.py in respond(self=<cherrypy._cprequest.Request object at 0x91aef4c>, path_info='/impex/imp')
  604                     if self.handler:
  605                         self.stage = 'handler'
  606                         cherrypy.response.body = self.handler()
  607                     
  608                     self.stage = 'before_finalize'
global cherrypy = <module 'cherrypy' from '/usr/lib/python2.5/site.../CherryPy-3.1.2-py2.5.egg/cherrypy/__init__.pyc'>, cherrypy.response = <cherrypy._ThreadLocalProxy object at 0x82e37ec>, cherrypy.response.body = [], self = <cherrypy._cprequest.Request object at 0x91aef4c>, self.handler = <cherrypy._cpdispatch.LateParamPageHandler object at 0x886f40c>
 /usr/lib/python2.5/site-packages/CherryPy-3.1.2-py2.5.egg/cherrypy/_cpdispatch.py in __call__(self=<cherrypy._cpdispatch.LateParamPageHandler object at 0x886f40c>)
   23     def __call__(self):
   24         try:
   25             return self.callable(*self.args, **self.kwargs)
   26         except TypeError, x:
   27             test_callable_spec(self.callable, self.args, self.kwargs)
self = <cherrypy._cpdispatch.LateParamPageHandler object at 0x886f40c>, self.callable = <function imp at 0x93aea3c>, self.args = (), self.kwargs = {'_terp_model': 'crossovered.budget', '_terp_source': '_terp_list', '_terp_view_ids': '[391, False]', '_terp_view_mode': "[u'tree', u'form']"}
 /home/ptsadmin/trunk/openobject-client-web/openerp/addons/base/controllers/utils.py in wrapper(*args=(), **kw={'_terp_model': 'crossovered.budget', '_terp_source': '_terp_list', '_terp_view_ids': '[391, False]', '_terp_view_mode': "[u'tree', u'form']"})
  118             # User is logged in; allow access
  119             clear_login_fields(kw)
  120             return fn(*args, **kw)
  121         else:
  122             # User isn't logged in yet.
fn = <bound method ImpEx.imp of <base.controllers.impex.ImpEx object at 0x8b6c1ec>>, args = (), kw = {'_terp_model': 'crossovered.budget', '_terp_source': '_terp_list', '_terp_view_ids': '[391, False]', '_terp_view_mode': "[u'tree', u'form']"}
 /home/ptsadmin/trunk/openobject-client-web/openerp/tools/expose.py in func_wrapper(*args=(<base.controllers.impex.ImpEx object at 0x8b6c1ec>,), **kw={'_terp_model': 'crossovered.budget', '_terp_source': '_terp_list', '_terp_view_ids': '[391, False]', '_terp_view_mode': "[u'tree', u'form']"})
  202         def func_wrapper(*args, **kw):
  203 
  204             res = func(*args, **kw)
  205             
  206             if format == 'json' or (allow_json and 'allow_json' in cherrypy.request.params):
global res = '/home/ptsadmin/trunk/openobject-client-web/openerp/admin/i18n/mapping/javascript.cfg', func = <function imp at 0x8971304>, args = (<base.controllers.impex.ImpEx object at 0x8b6c1ec>,), kw = {'_terp_model': 'crossovered.budget', '_terp_source': '_terp_list', '_terp_view_ids': '[391, False]', '_terp_view_mode': "[u'tree', u'form']"}
 /home/ptsadmin/trunk/openobject-client-web/openerp/addons/base/controllers/impex.py in imp(self=<base.controllers.impex.ImpEx object at 0x8b6c1ec>, **kw={'_terp_model': 'crossovered.budget', '_terp_source': '_terp_list', '_terp_view_ids': '[391, False]', '_terp_view_mode': "[u'tree', u'form']"})
  411 
  412         headers = [{'string' : 'Name', 'name' : 'name', 'type' : 'char'}]
  413         tree = tw.treegrid.TreeGrid('import_fields',
  414                                     model=params.model,
  415                                     headers=headers,
tree undefined, tw undefined, model undefined, params = {'_terp_view_mode': [u'tree', u'form'], '_terp_s...ssovered.budget', '_terp_view_ids': [391, False]}, params.model = 'crossovered.budget', headers = [{'name': 'name', 'string': 'Name', 'type': 'char'}], url undefined, global tools = <module 'openerp.tools' from '/home/ptsadmin/trunk/openobject-client-web/openerp/tools/__init__.py'>, tools.url = <function url at 0x8614a74>, field_parent undefined, views = {u'form': False, u'tree': 391}, is_importing undefined

<type 'exceptions.NameError'>: global name 'tw' is not defined
      args = ("global name 'tw' is not defined",)
      message = "global name 'tw' is not defined"