← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 693305] Re: [6.0-RC1] Error when trying to install project-planning module

 

Now, when I'm trying to open the Projects, here's  the error I get :

<type 'exceptions.TypeError'>	Python 2.6.6: /usr/bin/python
Wed Dec 22 10:19:32 2010

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/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cprequest.py in respond(self=<cherrypy._cprequest.Request object>, path_info='/openerp/execute')
  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/local/lib/python2..../CherryPy-3.1.2-py2.6.egg/cherrypy/__init__.pyc'>, cherrypy.response = <cherrypy._ThreadLocalProxy object>, cherrypy.response.body = [], self = <cherrypy._cprequest.Request object>, self.handler = <cherrypy._cpdispatch.LateParamPageHandler object>
 /usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cpdispatch.py in __call__(self=<cherrypy._cpdispatch.LateParamPageHandler object>)
   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>, self.callable = <bound method Root.default of <openobject.controllers._root.Root object>>, self.args = ('openerp', 'execute'), self.kwargs = {'action': '{"groups_id": [], "domain": false, "help": false..."usage": "menu", "type": "ir.actions.act_window"}', 'data': '{"context": {"lang": "fr_CH", "tz": "Europe/Zuri...", "id": 243, "report_type": "pdf", "ids": [243]}'}
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/openobject/tools/_expose.py in func_wrapper(*args=(<openobject.controllers._root.Root object>, 'openerp', 'execute'), **kw={'action': '{"groups_id": [], "domain": false, "help": false..."usage": "menu", "type": "ir.actions.act_window"}', 'data': '{"context": {"lang": "fr_CH", "tz": "Europe/Zuri...", "id": 243, "report_type": "pdf", "ids": [243]}'})
  189                 raise cherrypy.HTTPError(405)
  190 
  191             res = func(*args, **kw)
  192             if format == 'json' or (allow_json and 'allow_json' in cherrypy.request.params):
  193                 cherrypy.response.headers['Content-Type'] = 'text/javascript'
global res = '/usr/local/lib/python2.6/dist-packages/openerp_w....6.egg/openobject/controllers/templates/base.mako', func = <function default>, args = (<openobject.controllers._root.Root object>, 'openerp', 'execute'), kw = {'action': '{"groups_id": [], "domain": false, "help": false..."usage": "menu", "type": "ir.actions.act_window"}', 'data': '{"context": {"lang": "fr_CH", "tz": "Europe/Zuri...", "id": 243, "report_type": "pdf", "ids": [243]}'}
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/openobject/controllers/_root.py in default(self=<openobject.controllers._root.Root object>, *args=('openerp', 'execute'), **kw={'action': '{"groups_id": [], "domain": false, "help": false..."usage": "menu", "type": "ir.actions.act_window"}', 'data': '{"context": {"lang": "fr_CH", "tz": "Europe/Zuri...", "id": 243, "report_type": "pdf", "ids": [243]}'})
   83             request.handler = cherrypy.NotFound()
   84 
   85         return request.handler()
   86 
   87     def find_handler(self):
request = <cherrypy._ThreadLocalProxy object>, request.handler = <cherrypy._cpdispatch.LateParamPageHandler object>
 /usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cpdispatch.py in __call__(self=<cherrypy._cpdispatch.LateParamPageHandler object>)
   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>, self.callable = <function index>, self.args = (), self.kwargs = {'action': '{"groups_id": [], "domain": false, "help": false..."usage": "menu", "type": "ir.actions.act_window"}', 'data': '{"context": {"lang": "fr_CH", "tz": "Europe/Zuri...", "id": 243, "report_type": "pdf", "ids": [243]}'}
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/controllers/utils.py in wrapper(*args=(), **kw={'action': '{"groups_id": [], "domain": false, "help": false..."usage": "menu", "type": "ir.actions.act_window"}', 'data': '{"context": {"lang": "fr_CH", "tz": "Europe/Zuri...", "id": 243, "report_type": "pdf", "ids": [243]}'})
  118             # User is logged in; allow access
  119             clear_login_fields(kw)
  120             return fn(*args, **kw)
  121         else:
  122             action = kw.get('login_action', '')
fn = <bound method Execute.index of <openerp.controllers.execute.Execute object>>, args = (), kw = {'action': '{"groups_id": [], "domain": false, "help": false..."usage": "menu", "type": "ir.actions.act_window"}', 'data': '{"context": {"lang": "fr_CH", "tz": "Europe/Zuri...", "id": 243, "report_type": "pdf", "ids": [243]}'}
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/openobject/tools/_expose.py in func_wrapper(*args=(<openerp.controllers.execute.Execute object>,), **kw={'action': '{"groups_id": [], "domain": false, "help": false..."usage": "menu", "type": "ir.actions.act_window"}', 'data': '{"context": {"lang": "fr_CH", "tz": "Europe/Zuri...", "id": 243, "report_type": "pdf", "ids": [243]}'})
  189                 raise cherrypy.HTTPError(405)
  190 
  191             res = func(*args, **kw)
  192             if format == 'json' or (allow_json and 'allow_json' in cherrypy.request.params):
  193                 cherrypy.response.headers['Content-Type'] = 'text/javascript'
global res = '/usr/local/lib/python2.6/dist-packages/openerp_w....6.egg/openobject/controllers/templates/base.mako', func = <function index>, args = (<openerp.controllers.execute.Execute object>,), kw = {'action': '{"groups_id": [], "domain": false, "help": false..."usage": "menu", "type": "ir.actions.act_window"}', 'data': '{"context": {"lang": "fr_CH", "tz": "Europe/Zuri...", "id": 243, "report_type": "pdf", "ids": [243]}'}
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/controllers/execute.py in index(self=<openerp.controllers.execute.Execute object>, action='{"groups_id": [], "domain": false, "help": false..."usage": "menu", "type": "ir.actions.act_window"}', data='{"context": {"lang": "fr_CH", "tz": "Europe/Zuri...", "id": 243, "report_type": "pdf", "ids": [243]}')
   13     def index(self, action, data):
   14         return actions.execute(
   15             simplejson.loads(action),
   16             **dict((key.encode('ascii'), value) for key, value in simplejson.loads(data).iteritems())
   17         )
builtin dict = <type 'dict'>, key undefined, value undefined, global simplejson = <module 'simplejson' from '/usr/lib/pymodules/python2.6/simplejson/__init__.pyc'>, simplejson.loads = <function loads>, data = '{"context": {"lang": "fr_CH", "tz": "Europe/Zuri...", "id": 243, "report_type": "pdf", "ids": [243]}', ).iteritems undefined
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/controllers/actions.py in execute(action={'auto_refresh': 0, 'auto_search': True, 'context': '{}', 'display_menu_tip': True, 'domain': '[]', 'filter': False, 'groups_id': [], 'help': False, 'id': 322, 'limit': 80, ...}, **data={'context': {'client': 'web', 'department_id': False, 'lang': 'fr_CH', 'project_id': False, 'section_id': False, 'tz': 'Europe/Zurich'}, 'id': 243, 'ids': [243], 'limit': 20, 'model': 'ir.ui.menu', 'report_type': 'pdf', 'res_id': None, 'res_model': 'board.board', 'search_view': None, 'view_mode': 'form', ...})
  354 
  355     action_executor = ACTIONS_BY_TYPE[action['type']]
  356     return action_executor(action, data)
  357 
  358 def execute_url(**data):
action_executor = <function act_window>, action = {'auto_refresh': 0, 'auto_search': True, 'context': '{}', 'display_menu_tip': True, 'domain': '[]', 'filter': False, 'groups_id': [], 'help': False, 'id': 322, 'limit': 80, ...}, data = {'context': {'client': 'web', 'department_id': False, 'lang': 'fr_CH', 'project_id': False, 'section_id': False, 'tz': 'Europe/Zurich'}, 'id': 243, 'ids': [243], 'limit': 20, 'model': 'ir.ui.menu', 'report_type': 'pdf', 'res_id': None, 'res_model': 'board.board', 'search_view': None, 'view_mode': 'form', ...}
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/controllers/actions.py in act_window(action={'auto_refresh': 0, 'auto_search': True, 'context': '{}', 'display_menu_tip': True, 'domain': '[]', 'filter': False, 'groups_id': [], 'help': False, 'id': 322, 'limit': 80, ...}, data={'context': {'client': 'web', 'department_id': False, 'lang': 'fr_CH', 'project_id': False, 'section_id': False, 'tz': 'Europe/Zurich'}, 'id': 243, 'ids': [243], 'limit': 20, 'model': 'ir.ui.menu', 'report_type': 'pdf', 'res_id': None, 'res_model': 'board.board', 'search_view': None, 'view_mode': 'form', ...})
  265                           search_view=data['search_view'],
  266                           context_menu=data.get('context_menu'),
  267                           display_menu_tip=display_menu_tip)
  268 
  269 def server(action, data):
display_menu_tip = False
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/controllers/actions.py in execute_window(view_ids=[511], model='board.board', res_id=None, domain=[], view_type='form', context={'_terp_view_name': 'Tableau de bord de projet', 'active_id': 243, 'active_ids': [243], 'active_model': 'ir.ui.menu', 'client': 'web', 'department_id': False, 'lang': 'fr_CH', 'project_id': False, 'section_id': False, 'tz': 'Europe/Zurich'}, mode=['form'], name='Tableau de bord de projet', target='current', limit=20, search_view=None, context_menu=None, display_menu_tip=False)
   91         params.view_mode=mode
   92 
   93         return Form().create(params)
   94 
   95     elif view_type == 'tree':
global Form = <class 'openerp.controllers.form.Form'>, ).create = <unbound method Form.create>, params = {'_terp_view_type': 'form', '_terp_offset': 0, '...}, '_terp_view_ids': [511], 'context_menu': None}
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/controllers/utils.py in wrapper(*args=({'_terp_view_type': 'form', '_terp_offset': 0, '...}, '_terp_view_ids': [511], 'context_menu': None},), **kw={})
  118             # User is logged in; allow access
  119             clear_login_fields(kw)
  120             return fn(*args, **kw)
  121         else:
  122             action = kw.get('login_action', '')
fn = <bound method Form.create of <openerp.controllers.form.Form object>>, args = ({'_terp_view_type': 'form', '_terp_offset': 0, '...}, '_terp_view_ids': [511], 'context_menu': None},), kw = {}
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/openobject/tools/_expose.py in func_wrapper(*args=(<openerp.controllers.form.Form object>, {'_terp_view_type': 'form', '_terp_offset': 0, '...}, '_terp_view_ids': [511], 'context_menu': None}), **kw={})
  189                 raise cherrypy.HTTPError(405)
  190 
  191             res = func(*args, **kw)
  192             if format == 'json' or (allow_json and 'allow_json' in cherrypy.request.params):
  193                 cherrypy.response.headers['Content-Type'] = 'text/javascript'
global res = '/usr/local/lib/python2.6/dist-packages/openerp_w....6.egg/openobject/controllers/templates/base.mako', func = <function create>, args = (<openerp.controllers.form.Form object>, {'_terp_view_type': 'form', '_terp_offset': 0, '...}, '_terp_view_ids': [511], 'context_menu': None}), kw = {}
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/controllers/form.py in create(self=<openerp.controllers.form.Form object>, params={'_terp_view_type': 'form', '_terp_offset': 0, '...}, '_terp_view_ids': [511], 'context_menu': None}, tg_errors=None)
  202         if params.view_type == 'tree':
  203             params.editable = True
  204         form = self.create_form(params, tg_errors)
  205 
  206         if not tg_errors:
form undefined, self = <openerp.controllers.form.Form object>, self.create_form = <bound method Form.create_form of <openerp.controllers.form.Form object>>, params = {'_terp_view_type': 'form', '_terp_offset': 0, '...}, '_terp_view_ids': [511], 'context_menu': None}, tg_errors = None
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/controllers/form.py in create_form(self=<openerp.controllers.form.Form object>, params={'_terp_view_type': 'form', '_terp_offset': 0, '...}, '_terp_view_ids': [511], 'context_menu': None}, tg_errors=None)
  193         params.view_type = params.view_type or params.view_mode[0]
  194 
  195         return tw.form_view.ViewForm(params, name="view_form", action="/openerp/form/save")
  196 
  197     @expose(template="/openerp/controllers/templates/form.mako")
global tw = <module 'openerp.widgets' from '/usr/local/lib/p...1-py2.6.egg/addons/openerp/widgets/__init__.pyc'>, tw.form_view = <module 'openerp.widgets.form_view' from '/usr/l...-py2.6.egg/addons/openerp/widgets/form_view.pyc'>, tw.form_view.ViewForm = <class 'openerp.widgets.form_view.ViewForm'>, params = {'_terp_view_type': 'form', '_terp_offset': 0, '...}, '_terp_view_ids': [511], 'context_menu': None}, name undefined, action undefined
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/widgets/form_view.py in __init__(self=ViewForm, params={'_terp_view_type': 'form', '_terp_offset': 0, '...}, '_terp_view_ids': [511], 'context_menu': None}, **kw={'action': '/openerp/form/save', 'name': 'view_form'})
   91             
   92         self.screen = Screen(prefix='', hastoolbar=True, hassubmenu=True, editable=editable, readonly=readonly,
   93                              selectable=params.selectable or 2)
   94         
   95         if self.screen.widget and self.screen.view_type in ['form', 'tree']:
selectable undefined, params = {'_terp_view_type': 'form', '_terp_offset': 0, '...}, '_terp_view_ids': [511], 'context_menu': None}, params.selectable = None
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/widgets/screen.py in __init__(self=Screen, params={'_terp_view_type': 'form', '_terp_offset': 0, '...}, '_terp_view_ids': [511], 'context_menu': None}, prefix='', name='', views_preloaded={}, hastoolbar=True, hassubmenu=True, editable=True, readonly=False, selectable=2, nolinks=1, **kw={})
  109         self.kalendar           = params.kalendar
  110         if self.view_mode:
  111             self.add_view_id(self.view_id, self.view_type)
  112 
  113     def add_view_id(self, view_id, view_type):
self = Screen, self.add_view_id = <bound method Screen.add_view_id of Screen>, self.view_id = 511, self.view_type = 'form'
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/widgets/screen.py in add_view_id(self=Screen, view_id=511, view_type='form')
  123             view = cache.fields_view_get(self.model, view_id, view_type, ctx, self.hastoolbar, self.hassubmenu)
  124 
  125         self.add_view(view, view_type)
  126 
  127     def add_view(self, view, view_type='form'):
self = Screen, self.add_view = <bound method Screen.add_view of Screen>, view = {'arch': u'<form string="Mon tableau">\n ... </hpaned>\n </form>', 'field_parent': False, 'fields': {'line_ids': {'context': {}, 'domain': [], 'relation': u'board.board.line', 'selectable': True, 'string': u'Vues Action', 'type': u'one2many'}, 'name': {'required': True, 'selectable': True, 'size': 64, 'string': u'Tableau de bord', 'type': u'char'}, 'view_id': {'context': {}, 'domain': [], 'relation': u'ir.ui.view', 'selectable': True, 'string': u'Vue Tableau de Bord', 'type': u'many2one'}}, 'model': u'board.board', 'name': u'board.project.form', 'submenu': False, 'toolbar': {'action': [], 'print': [], 'relate': []}, 'type': u'form', 'view_id': 511}, view_type = 'form'
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/widgets/screen.py in add_view(self=Screen, view={'arch': u'<form string="Mon tableau">\n ... </hpaned>\n </form>', 'field_parent': False, 'fields': {'line_ids': {'context': {}, 'domain': [], 'relation': u'board.board.line', 'selectable': True, 'string': u'Vues Action', 'type': u'one2many'}, 'name': {'required': True, 'selectable': True, 'size': 64, 'string': u'Tableau de bord', 'type': u'char'}, 'view_id': {'context': {}, 'domain': [], 'relation': u'ir.ui.view', 'selectable': True, 'string': u'Vue Tableau de Bord', 'type': u'many2one'}}, 'model': u'board.board', 'name': u'board.project.form', 'submenu': False, 'toolbar': {'action': [], 'print': [], 'relate': []}, 'type': u'form', 'view_id': 511}, view_type='form')
  131         
  132         from _views import get_view_widget
  133         self.widget = get_view_widget(view_type, self)
  134 
  135         self.string = (self.widget or '') and self.widget.string
self = Screen, self.widget = None, get_view_widget = <function get_view_widget>, view_type = 'form'
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/widgets/_views.py in get_view_widget(kind='form', screen=Screen)
  135         raise Exception("view '%s' not supported." % kind)
  136 
  137     return view(screen)
  138 
  139 def get_registered_views():
view = <openerp.widgets._views.FormView object>, screen = Screen
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/widgets/_views.py in __call__(self=<openerp.widgets._views.FormView object>, screen=Screen)
   64                            editable=screen.editable,
   65                            readonly=screen.readonly,
   66                            nodefault=screen.nodefault, nolinks=screen.link)
   67 
   68         if not screen.is_wizard and screen.ids is None:
nodefault undefined, screen = Screen, screen.nodefault = False, nolinks undefined, screen.link = 1
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/widgets/form/_form.py in __init__(self=Form, prefix='', model='board.board', view={'arch': u'<form string="Mon tableau">\n ... </hpaned>\n </form>', 'field_parent': False, 'fields': {'line_ids': {'context': {}, 'domain': [], 'relation': u'board.board.line', 'selectable': True, 'string': u'Vues Action', 'type': u'one2many'}, 'name': {'required': True, 'selectable': True, 'size': 64, 'string': u'Tableau de bord', 'type': u'char'}, 'view_id': {'context': {}, 'domain': [], 'relation': u'ir.ui.view', 'selectable': True, 'string': u'Vue Tableau de Bord', 'type': u'many2one'}}, 'model': u'board.board', 'name': u'board.project.form', 'submenu': False, 'toolbar': {'action': [], 'print': [], 'relate': []}, 'type': u'form', 'view_id': 511}, ids=[], domain=[], context={'_terp_view_name': 'Tableau de bord de projet', 'active_id': 243, 'active_ids': [243], 'active_model': 'ir.ui.menu', 'client': 'web', 'department_id': False, 'lang': 'fr_CH', 'project_id': False, 'section_id': False, 'tz': 'Europe/Zurich'}, editable=True, readonly=False, nodefault=False, nolinks=1)
  810         self.view_fields = []
  811         self.nb_couter = 0
  812         self.frame = self.parse(prefix, dom, fields, values)[0]
  813         self.values = [values]
  814         self.concurrency_info = ConcurrencyInfo(self.model, [self.id])
self = Form, self.frame = None, self.parse = <bound method Form.parse of Form>, prefix = '', dom = <xml.dom.minidom.Document instance>, fields = {'line_ids': {'context': {}, 'domain': [], 'relation': u'board.board.line', 'selectable': True, 'string': u'Vues Action', 'type': u'one2many'}, 'name': {'required': True, 'selectable': True, 'size': 64, 'string': u'Tableau de bord', 'type': u'char'}, 'view_id': {'context': {}, 'domain': [], 'relation': u'ir.ui.view', 'selectable': True, 'string': u'Vue Tableau de Bord', 'type': u'many2one'}}, values = {'name': u'Dashboard'}
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/widgets/form/_form.py in parse(self=Form, prefix='', root=<xml.dom.minidom.Document instance>, fields={'line_ids': {'context': {}, 'domain': [], 'relation': u'board.board.line', 'selectable': True, 'string': u'Vues Action', 'type': u'one2many'}, 'name': {'required': True, 'selectable': True, 'size': 64, 'string': u'Tableau de bord', 'type': u'char'}, 'view_id': {'context': {}, 'domain': [], 'relation': u'ir.ui.view', 'selectable': True, 'string': u'Vue Tableau de Bord', 'type': u'many2one'}}, values={'name': u'Dashboard'})
  870 
  871             elif node.localName == 'form':
  872                 n = self.parse(prefix=prefix, root=node, fields=fields, values=values)
  873                 views.append(Frame(children=n, **attrs))
  874 
n undefined, self = Form, self.parse = <bound method Form.parse of Form>, prefix = '', root = <xml.dom.minidom.Document instance>, node = <DOM Element: form>, fields = {'line_ids': {'context': {}, 'domain': [], 'relation': u'board.board.line', 'selectable': True, 'string': u'Vues Action', 'type': u'one2many'}, 'name': {'required': True, 'selectable': True, 'size': 64, 'string': u'Tableau de bord', 'type': u'char'}, 'view_id': {'context': {}, 'domain': [], 'relation': u'ir.ui.view', 'selectable': True, 'string': u'Vue Tableau de Bord', 'type': u'many2one'}}, values = {'name': u'Dashboard'}
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/widgets/form/_form.py in parse(self=Form, prefix='', root=<DOM Element: form>, fields={'line_ids': {'context': {}, 'domain': [], 'relation': u'board.board.line', 'selectable': True, 'string': u'Vues Action', 'type': u'one2many'}, 'name': {'required': True, 'selectable': True, 'size': 64, 'string': u'Tableau de bord', 'type': u'char'}, 'view_id': {'context': {}, 'domain': [], 'relation': u'ir.ui.view', 'selectable': True, 'string': u'Vue Tableau de Bord', 'type': u'many2one'}}, values={'name': u'Dashboard'})
  917 
  918             elif node.localName=='hpaned':
  919                 n = self.parse(prefix=prefix, root=node, fields=fields, values=values)
  920                 views.append(HPaned(children=n, **attrs))
  921 
n = [], self = Form, self.parse = <bound method Form.parse of Form>, prefix = '', root = <DOM Element: form>, node = <DOM Element: hpaned>, fields = {'line_ids': {'context': {}, 'domain': [], 'relation': u'board.board.line', 'selectable': True, 'string': u'Vues Action', 'type': u'one2many'}, 'name': {'required': True, 'selectable': True, 'size': 64, 'string': u'Tableau de bord', 'type': u'char'}, 'view_id': {'context': {}, 'domain': [], 'relation': u'ir.ui.view', 'selectable': True, 'string': u'Vue Tableau de Bord', 'type': u'many2one'}}, values = {'name': u'Dashboard'}
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/widgets/form/_form.py in parse(self=Form, prefix='', root=<DOM Element: hpaned>, fields={'line_ids': {'context': {}, 'domain': [], 'relation': u'board.board.line', 'selectable': True, 'string': u'Vues Action', 'type': u'one2many'}, 'name': {'required': True, 'selectable': True, 'size': 64, 'string': u'Tableau de bord', 'type': u'char'}, 'view_id': {'context': {}, 'domain': [], 'relation': u'ir.ui.view', 'selectable': True, 'string': u'Vue Tableau de Bord', 'type': u'many2one'}}, values={'name': u'Dashboard'})
  925 
  926             elif node.localName in ('child1', 'child2'):
  927                 n = self.parse(prefix=prefix, root=node, fields=fields, values=values)
  928                 attrs['name'] = get_node_xpath(node)
  929                 views.append(Dashbar(children=n, **attrs))
n = [], self = Form, self.parse = <bound method Form.parse of Form>, prefix = '', root = <DOM Element: hpaned>, node = <DOM Element: child1>, fields = {'line_ids': {'context': {}, 'domain': [], 'relation': u'board.board.line', 'selectable': True, 'string': u'Vues Action', 'type': u'one2many'}, 'name': {'required': True, 'selectable': True, 'size': 64, 'string': u'Tableau de bord', 'type': u'char'}, 'view_id': {'context': {}, 'domain': [], 'relation': u'ir.ui.view', 'selectable': True, 'string': u'Vue Tableau de Bord', 'type': u'many2one'}}, values = {'name': u'Dashboard'}
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/widgets/form/_form.py in parse(self=Form, prefix='', root=<DOM Element: child1>, fields={'line_ids': {'context': {}, 'domain': [], 'relation': u'board.board.line', 'selectable': True, 'string': u'Vues Action', 'type': u'one2many'}, 'name': {'required': True, 'selectable': True, 'size': 64, 'string': u'Tableau de bord', 'type': u'char'}, 'view_id': {'context': {}, 'domain': [], 'relation': u'ir.ui.view', 'selectable': True, 'string': u'Vue Tableau de Bord', 'type': u'many2one'}}, values={'name': u'Dashboard'})
  930 
  931             elif node.localName=='action':
  932                 wid = get_widget('action')(**attrs)
  933                 views.append(wid)
  934                 cherrypy.request._terp_dashboard = True
wid = Action, global get_widget = <function get_widget>, attrs = {'colspan': u'4', 'domain': u"[('manager_id','=',uid),('planning_id.state','<>','cancel')]", 'name': u'841', 'prefix': '', 'state': None, 'string': u'Planning de mon projet'}
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/widgets/form/_action.py in __init__(self=Action, **attrs={'colspan': u'4', 'domain': u"[('manager_id','=',uid),('planning_id.state','<>','cancel')]", 'name': u'841', 'prefix': '', 'state': None, 'string': u'Planning de mon projet'})
  104                     )
  105 
  106                 self.screen = screen.Screen(params, prefix=self.name, editable=True, selectable=3)
  107 
  108             elif self.action['view_type']=='tree':
self = Action, self.screen = None, global screen = <module 'openerp.widgets.screen' from '/usr/loca...rc1-py2.6.egg/addons/openerp/widgets/screen.pyc'>, screen.Screen = <class 'openerp.widgets.screen.Screen'>, params = {'_terp_offset': 0, '_terp_model': u'report_acco...p_context': {}, '_terp_view_ids': [False, False]}, prefix undefined, self.name = u'841', editable undefined, builtin True = True, selectable undefined
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/widgets/screen.py in __init__(self=Screen, params={'_terp_offset': 0, '_terp_model': u'report_acco...p_context': {}, '_terp_view_ids': [False, False]}, prefix=u'841', name='', views_preloaded={}, hastoolbar=False, hassubmenu=False, editable=True, readonly=False, selectable=3, nolinks=1, **kw={})
  109         self.kalendar           = params.kalendar
  110         if self.view_mode:
  111             self.add_view_id(self.view_id, self.view_type)
  112 
  113     def add_view_id(self, view_id, view_type):
self = Screen, self.add_view_id = <bound method Screen.add_view_id of Screen>, self.view_id = 1407, self.view_type = u'graph'
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/widgets/screen.py in add_view_id(self=Screen, view_id=False, view_type=u'graph')
  123             view = cache.fields_view_get(self.model, view_id, view_type, ctx, self.hastoolbar, self.hassubmenu)
  124 
  125         self.add_view(view, view_type)
  126 
  127     def add_view(self, view, view_type='form'):
self = Screen, self.add_view = <bound method Screen.add_view of Screen>, view = {'arch': u'<graph string="Statistiques du planning" type="b...nt_tasks" operator="+"/>\n </graph>', 'field_parent': False, 'fields': {'account_id': {'context': {}, 'domain': [], 'invisible': u'1', 'name': u'account_id', 'relation': u'account.analytic.account', 'selectable': True, 'string': u'Compte', 'type': u'many2one', 'views': {}}, 'sum_amount': {'name': u'sum_amount', 'operator': u'+', 'required': True, 'selectable': True, 'string': u'Jours planifi\xe9s', 'type': u'float', 'views': {}}, 'sum_amount_real': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_sum_amount_real', 'name': u'sum_amount_real', 'operator': u'+', 'readonly': 1, ...}, 'sum_amount_tasks': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_sum_amount_tasks', 'name': u'sum_amount_tasks', 'operator': u'+', 'readonly': 1, ...}}, 'model': u'report_account_analytic.planning.stat', 'name': u'report.account.analytic.planning.stat.graph', 'type': u'graph', 'view_id': 1407}, view_type = u'graph'
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/widgets/screen.py in add_view(self=Screen, view={'arch': u'<graph string="Statistiques du planning" type="b...nt_tasks" operator="+"/>\n </graph>', 'field_parent': False, 'fields': {'account_id': {'context': {}, 'domain': [], 'invisible': u'1', 'name': u'account_id', 'relation': u'account.analytic.account', 'selectable': True, 'string': u'Compte', 'type': u'many2one', 'views': {}}, 'sum_amount': {'name': u'sum_amount', 'operator': u'+', 'required': True, 'selectable': True, 'string': u'Jours planifi\xe9s', 'type': u'float', 'views': {}}, 'sum_amount_real': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_sum_amount_real', 'name': u'sum_amount_real', 'operator': u'+', 'readonly': 1, ...}, 'sum_amount_tasks': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_sum_amount_tasks', 'name': u'sum_amount_tasks', 'operator': u'+', 'readonly': 1, ...}}, 'model': u'report_account_analytic.planning.stat', 'name': u'report.account.analytic.planning.stat.graph', 'type': u'graph', 'view_id': 1407}, view_type=u'graph')
  131         
  132         from _views import get_view_widget
  133         self.widget = get_view_widget(view_type, self)
  134 
  135         self.string = (self.widget or '') and self.widget.string
self = Screen, self.widget = None, get_view_widget = <function get_view_widget>, view_type = u'graph'
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/widgets/_views.py in get_view_widget(kind=u'graph', screen=Screen)
  135         raise Exception("view '%s' not supported." % kind)
  136 
  137     return view(screen)
  138 
  139 def get_registered_views():
view = <view_graph.widgets._views.GraphView object>, screen = Screen
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/view_graph/widgets/_views.py in __call__(self=<view_graph.widgets._views.GraphView object>, screen=Screen)
   17                        ids=screen.ids, domain=screen.domain,
   18                        view_mode = screen.view_mode,
   19                        context=screen.context)
   20         screen.ids = widget.ids
   21         return widget
context undefined, screen = Screen, screen.context = {}
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/view_graph/widgets/_graph.py in __init__(self=Graph, model=u'report_account_analytic.planning.stat', view={'arch': u'<graph string="Statistiques du planning" type="b...nt_tasks" operator="+"/>\n </graph>', 'field_parent': False, 'fields': {'account_id': {'context': {}, 'domain': [], 'invisible': u'1', 'name': u'account_id', 'relation': u'account.analytic.account', 'selectable': True, 'string': u'Compte', 'type': u'many2one', 'views': {}}, 'sum_amount': {'name': u'sum_amount', 'operator': u'+', 'required': True, 'selectable': True, 'string': u'Jours planifi\xe9s', 'type': u'float', 'views': {}}, 'sum_amount_real': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_sum_amount_real', 'name': u'sum_amount_real', 'operator': u'+', 'readonly': 1, ...}, 'sum_amount_tasks': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_sum_amount_tasks', 'name': u'sum_amount_tasks', 'operator': u'+', 'readonly': 1, ...}}, 'model': u'report_account_analytic.planning.stat', 'name': u'report.account.analytic.planning.stat.graph', 'type': u'graph', 'view_id': 1407}, view_id=1407, ids=None, domain=[], context={}, view_mode=[u'graph', u'tree'], group_by=[], width=360, height=300)
  101 
  102         if chart_type == "bar":
  103             self.data = BarChart(model, view, view_id, ids, domain, view_mode, context, group_by)
  104         else:
  105             self.data = PieChart(model, view, view_id, ids, domain, view_mode, context, group_by)
self = Graph, self.data = None, global BarChart = <class 'view_graph.widgets._graph.BarChart'>, model = u'report_account_analytic.planning.stat', view = {'arch': u'<graph string="Statistiques du planning" type="b...nt_tasks" operator="+"/>\n </graph>', 'field_parent': False, 'fields': {'account_id': {'context': {}, 'domain': [], 'invisible': u'1', 'name': u'account_id', 'relation': u'account.analytic.account', 'selectable': True, 'string': u'Compte', 'type': u'many2one', 'views': {}}, 'sum_amount': {'name': u'sum_amount', 'operator': u'+', 'required': True, 'selectable': True, 'string': u'Jours planifi\xe9s', 'type': u'float', 'views': {}}, 'sum_amount_real': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_sum_amount_real', 'name': u'sum_amount_real', 'operator': u'+', 'readonly': 1, ...}, 'sum_amount_tasks': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_sum_amount_tasks', 'name': u'sum_amount_tasks', 'operator': u'+', 'readonly': 1, ...}}, 'model': u'report_account_analytic.planning.stat', 'name': u'report.account.analytic.planning.stat.graph', 'type': u'graph', 'view_id': 1407}, view_id = 1407, ids = None, domain = [], view_mode = [u'graph', u'tree'], context = {}, group_by = []
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/view_graph/widgets/_graph.py in __init__(self=<view_graph.widgets._graph.BarChart object>, model=u'report_account_analytic.planning.stat', view={'arch': u'<graph string="Statistiques du planning" type="b...nt_tasks" operator="+"/>\n </graph>', 'field_parent': False, 'fields': {'account_id': {'context': {}, 'domain': [], 'invisible': u'1', 'name': u'account_id', 'relation': u'account.analytic.account', 'selectable': True, 'string': u'Compte', 'type': u'many2one', 'views': {}}, 'sum_amount': {'name': u'sum_amount', 'operator': u'+', 'required': True, 'selectable': True, 'string': u'Jours planifi\xe9s', 'type': u'float', 'views': {}}, 'sum_amount_real': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_sum_amount_real', 'name': u'sum_amount_real', 'operator': u'+', 'readonly': 1, ...}, 'sum_amount_tasks': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_sum_amount_tasks', 'name': u'sum_amount_tasks', 'operator': u'+', 'readonly': 1, ...}}, 'model': u'report_account_analytic.planning.stat', 'name': u'report.account.analytic.planning.stat.graph', 'type': u'graph', 'view_id': 1407}, view_id=1407, ids=None, domain=[], view_mode=[u'graph', u'tree'], context={}, group_by=[])
  363 
  364     def __init__(self, model, view=False, view_id=False, ids=[], domain=[], view_mode=[], context={}, group_by=[]):
  365         super(BarChart, self).__init__(model, view, view_id, ids, domain, view_mode, context,group_by)
  366         self.context = context
  367         
builtin super = <type 'super'>, global BarChart = <class 'view_graph.widgets._graph.BarChart'>, self = <view_graph.widgets._graph.BarChart object>, ).__init__ = <bound method BarChart.__init__ of <view_graph.widgets._graph.BarChart object>>, model = u'report_account_analytic.planning.stat', view = {'arch': u'<graph string="Statistiques du planning" type="b...nt_tasks" operator="+"/>\n </graph>', 'field_parent': False, 'fields': {'account_id': {'context': {}, 'domain': [], 'invisible': u'1', 'name': u'account_id', 'relation': u'account.analytic.account', 'selectable': True, 'string': u'Compte', 'type': u'many2one', 'views': {}}, 'sum_amount': {'name': u'sum_amount', 'operator': u'+', 'required': True, 'selectable': True, 'string': u'Jours planifi\xe9s', 'type': u'float', 'views': {}}, 'sum_amount_real': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_sum_amount_real', 'name': u'sum_amount_real', 'operator': u'+', 'readonly': 1, ...}, 'sum_amount_tasks': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_sum_amount_tasks', 'name': u'sum_amount_tasks', 'operator': u'+', 'readonly': 1, ...}}, 'model': u'report_account_analytic.planning.stat', 'name': u'report.account.analytic.planning.stat.graph', 'type': u'graph', 'view_id': 1407}, view_id = 1407, ids = None, domain = [], view_mode = [u'graph', u'tree'], context = {}, group_by = []
 /usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/view_graph/widgets/_graph.py in __init__(self=<view_graph.widgets._graph.BarChart object>, model=u'report_account_analytic.planning.stat', view={'arch': u'<graph string="Statistiques du planning" type="b...nt_tasks" operator="+"/>\n </graph>', 'field_parent': False, 'fields': {'account_id': {'context': {}, 'domain': [], 'invisible': u'1', 'name': u'account_id', 'relation': u'account.analytic.account', 'selectable': True, 'string': u'Compte', 'type': u'many2one', 'views': {}}, 'sum_amount': {'name': u'sum_amount', 'operator': u'+', 'required': True, 'selectable': True, 'string': u'Jours planifi\xe9s', 'type': u'float', 'views': {}}, 'sum_amount_real': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_sum_amount_real', 'name': u'sum_amount_real', 'operator': u'+', 'readonly': 1, ...}, 'sum_amount_tasks': {'digits': (16, 2), 'fnct_inv': False, 'fnct_inv_arg': False, 'fnct_search': False, 'func_method': True, 'func_obj': False, 'function': u'_sum_amount_tasks', 'name': u'sum_amount_tasks', 'operator': u'+', 'readonly': 1, ...}}, 'model': u'report_account_analytic.planning.stat', 'name': u'report.account.analytic.planning.stat.graph', 'type': u'graph', 'view_id': 1407}, view_id=1407, ids=[1, 2, 3, 4], domain=[], view_mode=[u'graph', u'tree'], context={}, group_by=[])
  177                         res[x] = ''
  178                 else:
  179                     res[x] = float(value[x])
  180 
  181             if axis and isinstance(value[axis[0]], (tuple, list)):
res = {'temp_id': 1}, x = u'sum_amount_real', builtin float = <type 'float'>, value = {'account_id': (38, u'MW Programmation SA / Internal / Our Super Product Development / Trunk'), 'id': 1, 'sum_amount': 2.0, 'sum_amount_real': [], 'sum_amount_tasks': []}

<type 'exceptions.TypeError'>: float() argument must be a string or a number
      args = ('float() argument must be a string or a number',)
      message = 'float() argument must be a string or a number'
Loading...

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

Title:
  [6.0-RC1] Error when trying to install project-planning module

Status in OpenObject Addons Modules:
  New

Bug description:
  Hello all,

here's the error I get when tried to install the module project-planning :

[2010-12-22 10:19:07,014][mwp_18] ERROR:test:Tests failed to execute in module project_planning
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/__init__.py", line 665, in load_test
    _load_data(cr, module_name, id_map, mode, 'test')
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/__init__.py", line 688, in _load_data
    tools.convert_yaml_import(cr, module_name, file, id_map, mode, noupdate)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/yaml_import.py", line 790, in yaml_import
    yaml_interpreter.process(yaml_string)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/yaml_import.py", line 725, in process
    self._process_node(node)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/yaml_import.py", line 740, in _process_node
    self.process_python(node)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/yaml_import.py", line 414, in process_python
    unsafe_eval(code_obj, {'ref': self.get_id}, code_context)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/project_planning/test/project_planning_report.yml", line 2, in <module>
    In order to test the PDF reports defined on a Project Planning, we will print Project Planning Report
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/report_sxw.py", line 423, in create
    fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/report_sxw.py", line 486, in create_source_pdf
    return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/report_sxw.py", line 506, in create_single_pdf
    logo = base64.decodestring(rml_parser.logo)
  File "/usr/lib/python2.6/base64.py", line 321, in decodestring
    return binascii.a2b_base64(s)
Error: Incorrect padding





References