Hi guys,
I don't know if this is a bug or that i am doing something wrong, but i decided to post it here so maybe you guys can help me out with this problem.
When i try to create a new dashboard while logged in as admin i am getting the following SQL error:
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 0x148e350>, path_info='/form/edit')
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 0xba73d0>, cherrypy.response.body = [], self = <cherrypy._cprequest.Request object at 0x148e350>, self.handler = <cherrypy._cpdispatch.LateParamPageHandler object at 0x1d43710>
/usr/lib/python2.5/site-packages/CherryPy-3.1.2-py2.5.egg/cherrypy/_cpdispatch.py in __call__(self=<cherrypy._cpdispatch.LateParamPageHandler object at 0x1d43710>)
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 0x1d43710>, self.callable = <function edit at 0x2610230>, self.args = (), self.kwargs = {'context': "{'lang': u'en_US', 'active_ids': [110], 'client': 'web', 'tz': False, 'active_id': 110}", 'count': '1', 'domain': '[]', 'id': 'False', 'ids': '[8]', 'limit': '80', 'model': 'board.board', 'offset': '0', 'search_domain': '', 'view_ids': '[False, False]', ...}
/usr/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/controllers/base.py in wrapper(*args=(), **kw={'context': "{'lang': u'en_US', 'active_ids': [110], 'client': 'web', 'tz': False, 'active_id': 110}", 'count': '1', 'domain': '[]', 'id': 'False', 'ids': '[8]', 'limit': '80', 'model': 'board.board', 'offset': '0', 'search_domain': '', 'view_ids': '[False, False]', ...})
120 # User is logged in; allow access
121 clear_login_fields(kw)
122 return fn(*args, **kw)
123 else:
124 # User isn't logged in yet.
fn = <bound method Form.edit of <openerp.controllers.form.Form object at 0x18663d0>>, args = (), kw = {'context': "{'lang': u'en_US', 'active_ids': [110], 'client': 'web', 'tz': False, 'active_id': 110}", 'count': '1', 'domain': '[]', 'id': 'False', 'ids': '[8]', 'limit': '80', 'model': 'board.board', 'offset': '0', 'search_domain': '', 'view_ids': '[False, False]', ...}
/usr/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/tools/expose.py in func_wrapper(*args=(<openerp.controllers.form.Form object at 0x18663d0>,), **kw={'context': "{'lang': u'en_US', 'active_ids': [110], 'client': 'web', 'tz': False, 'active_id': 110}", 'count': '1', 'domain': '[]', 'id': 'False', 'ids': '[8]', 'limit': '80', 'model': 'board.board', 'offset': '0', 'search_domain': '', 'view_ids': '[False, False]', ...})
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 = '/usr/lib/python2.5/site-packages/openerp_web-5.0...openerp/widgets/tinycalendar/templates/gantt.mako', func = <function edit at 0x14aa758>, args = (<openerp.controllers.form.Form object at 0x18663d0>,), kw = {'context': "{'lang': u'en_US', 'active_ids': [110], 'client': 'web', 'tz': False, 'active_id': 110}", 'count': '1', 'domain': '[]', 'id': 'False', 'ids': '[8]', 'limit': '80', 'model': 'board.board', 'offset': '0', 'search_domain': '', 'view_ids': '[False, False]', ...}
/usr/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/controllers/form.py in edit(self=<openerp.controllers.form.Form object at 0x18663d0>, model='board.board', id='False', ids='[8]', view_ids='[False, False]', view_mode="[u'tree', u'form']", source=None, domain='[]', context="{'lang': u'en_US', 'active_ids': [110], 'client': 'web', 'tz': False, 'active_id': 110}", offset='0', limit='80', count='1', search_domain='', **kw={})
304 params[params.source] = current
305
306 return self.create(params)
307
308 @expose()
self = <openerp.controllers.form.Form object at 0x18663d0>, self.create = <function create at 0x1b39c08>, params = {'_terp_view_type': 'form', '_terp_offset': 0, '...tive_id': 110}, '_terp_view_ids': [False, False]}
/usr/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/controllers/base.py in wrapper(*args=({'_terp_view_type': 'form', '_terp_offset': 0, '...tive_id': 110}, '_terp_view_ids': [False, False]},), **kw={})
120 # User is logged in; allow access
121 clear_login_fields(kw)
122 return fn(*args, **kw)
123 else:
124 # User isn't logged in yet.
fn = <bound method Form.create of <openerp.controllers.form.Form object at 0x18663d0>>, args = ({'_terp_view_type': 'form', '_terp_offset': 0, '...tive_id': 110}, '_terp_view_ids': [False, False]},), kw = {}
/usr/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/tools/expose.py in func_wrapper(*args=(<openerp.controllers.form.Form object at 0x18663d0>, {'_terp_view_type': 'form', '_terp_offset': 0, '...tive_id': 110}, '_terp_view_ids': [False, False]}), **kw={})
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 = '/usr/lib/python2.5/site-packages/openerp_web-5.0...openerp/widgets/tinycalendar/templates/gantt.mako', func = <function create at 0x14aa7d0>, args = (<openerp.controllers.form.Form object at 0x18663d0>, {'_terp_view_type': 'form', '_terp_offset': 0, '...tive_id': 110}, '_terp_view_ids': [False, False]}), kw = {}
/usr/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/controllers/form.py in create(self=<openerp.controllers.form.Form object at 0x18663d0>, params={'_terp_view_type': 'form', '_terp_offset': 0, '...tive_id': 110}, '_terp_view_ids': [False, False]}, tg_errors=None)
209 params.editable = True
210
211 form = self.create_form(params, tg_errors)
212
213 if not tg_errors:
form undefined, self = <openerp.controllers.form.Form object at 0x18663d0>, self.create_form = <bound method Form.create_form of <openerp.controllers.form.Form object at 0x18663d0>>, params = {'_terp_view_type': 'form', '_terp_offset': 0, '...tive_id': 110}, '_terp_view_ids': [False, False]}, tg_errors = None
/usr/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/controllers/form.py in create_form(self=<openerp.controllers.form.Form object at 0x18663d0>, params={'_terp_view_type': 'form', '_terp_offset': 0, '...tive_id': 110}, '_terp_view_ids': [False, False]}, tg_errors=None)
199 params.view_type = params.view_type or params.view_mode[0]
200
201 return tw.form_view.ViewForm(params, name="view_form", action="/form/save")
202
203 @expose(template="templates/form.mako")
global tw = <module 'openerp.widgets' from '/usr/lib/python2...eb-5.0.6-py2.5.egg/openerp/widgets/__init__.pyc'>, tw.form_view = <module 'openerp.widgets.form_view' from '/usr/l...b-5.0.6-py2.5.egg/openerp/widgets/form_view.pyc'>, tw.form_view.ViewForm = <class 'openerp.widgets.form_view.ViewForm'>, params = {'_terp_view_type': 'form', '_terp_offset': 0, '...tive_id': 110}, '_terp_view_ids': [False, False]}, name undefined, action undefined
/usr/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/widgets/base/meta.py in wrapper(self=ViewForm, *args=({'_terp_view_type': 'form', '_terp_offset': 0, '...tive_id': 110}, '_terp_view_ids': [False, False]},), **kw={'action': '/form/save', 'name': 'view_form'})
38 self.__initstack.append(1)
39
40 res = func(self, *args, **kw)
41 try:
42 self.__initstack.pop()
res undefined, func = <function __init__ at 0x12dc2a8>, self = ViewForm, args = ({'_terp_view_type': 'form', '_terp_offset': 0, '...tive_id': 110}, '_terp_view_ids': [False, False]},), kw = {'action': '/form/save', 'name': 'view_form'}
/usr/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/widgets/form_view.py in __init__(self=ViewForm, params={'_terp_view_type': 'form', '_terp_offset': 0, '...tive_id': 110}, '_terp_view_ids': [False, False]}, **kw={'action': '/form/save', 'name': 'view_form'})
70
71 self.screen = Screen(prefix='', hastoolbar=True, editable=editable, readonly=readonly,
72 selectable=params.selectable or 2)
73
74 self.sidebar = Sidebar(self.screen.model, self.screen.toolbar, self.screen.id,
selectable undefined, params = {'_terp_view_type': 'form', '_terp_offset': 0, '...tive_id': 110}, '_terp_view_ids': [False, False]}, params.selectable = None
/usr/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/widgets/base/meta.py in wrapper(self=Screen, *args=(), **kw={'editable': True, 'hastoolbar': True, 'prefix': '', 'readonly': False, 'selectable': 2})
38 self.__initstack.append(1)
39
40 res = func(self, *args, **kw)
41 try:
42 self.__initstack.pop()
res undefined, func = <function __init__ at 0x12d11b8>, self = Screen, args = (), kw = {'editable': True, 'hastoolbar': True, 'prefix': '', 'readonly': False, 'selectable': 2}
/usr/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/widgets/screen.py in __init__(self=Screen, params={'_terp_view_type': 'form', '_terp_offset': 0, '...tive_id': 110}, '_terp_view_ids': [False, False]}, prefix='', name='', views_preloaded={}, hastoolbar=True, editable=True, readonly=False, selectable=2, nolinks=1)
125
126 if self.view_mode:
127 self.add_view_id(self.view_id, self.view_type)
128
129 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 = 131, self.view_type = 'form'
/usr/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/widgets/screen.py in add_view_id(self=Screen, view_id=False, view_type='form')
137 view = cache.fields_view_get(self.model, view_id, view_type, ctx, self.hastoolbar)
138
139 self.add_view(view, view_type)
140
141 def add_view(self, view, view_type='form'):
self = Screen, self.add_view = <bound method Screen.add_view of Screen>, view = {'arch': u'<?xml version="1.0"?>\n\n <form str... </hpaned>\n </form>\n ', 'field_parent': False, 'fields': {'line_ids': {'context': u'', 'domain': [], 'relation': u'board.board.line', 'string': u'Action Views', 'type': u'one2many', 'views': {'form': {'arch': u'<form string="Dashboard View">\n ...name="position"/>\n </form>', 'fields': {'action_id': {...}, 'height': {...}, 'name': {...}, 'position': {...}, 'sequence': {...}, 'width': {...}}}, 'tree': {'arch': u'<tree string="Dashboard View">\n ...name="position"/>\n </tree>', 'fields': {'action_id': {...}, 'name': {...}, 'position': {...}, 'sequence': {...}}}}}, 'name': {'required': True, 'size': 64, 'string': u'Dashboard', 'type': u'char', 'views': {}}}, 'model': u'board.board', 'name': u'board.board.form', 'toolbar': {'action': [], 'print': [], 'relate': []}, 'type': u'form', 'view_id': 131}, view_type = 'form'
/usr/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/widgets/screen.py in add_view(self=Screen, view={'arch': u'<?xml version="1.0"?>\n\n <form str... </hpaned>\n </form>\n ', 'field_parent': False, 'fields': {'line_ids': {'context': u'', 'domain': [], 'relation': u'board.board.line', 'string': u'Action Views', 'type': u'one2many', 'views': {'form': {'arch': u'<form string="Dashboard View">\n ...name="position"/>\n </form>', 'fields': {'action_id': {...}, 'height': {...}, 'name': {...}, 'position': {...}, 'sequence': {...}, 'width': {...}}}, 'tree': {'arch': u'<tree string="Dashboard View">\n ...name="position"/>\n </tree>', 'fields': {'action_id': {...}, 'name': {...}, 'position': {...}, 'sequence': {...}}}}}, 'name': {'required': True, 'size': 64, 'string': u'Dashboard', 'type': u'char', 'views': {}}}, 'model': u'board.board', 'name': u'board.board.form', 'toolbar': {'action': [], 'print': [], 'relate': []}, 'type': u'form', 'view_id': 131}, view_type='form')
152 editable=self.editable,
153 readonly=self.readonly,
154 nodefault=self.nodefault, nolinks=self.link)
155
156 if not self.is_wizard and self.ids is None:
nodefault undefined, self = Screen, self.nodefault = False, nolinks undefined, self.link = 1
/usr/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/widgets/base/meta.py in wrapper(self=Form, *args=(), **kw={'context': {'active_id': 110, 'active_ids': [110], 'client': 'web', 'lang': u'en_US', 'tz': False}, 'domain': [], 'editable': True, 'ids': [], 'model': 'board.board', 'nodefault': False, 'nolinks': 1, 'prefix': '', 'readonly': False, 'view': {'arch': u'<?xml version="1.0"?>\n\n <form str... </hpaned>\n </form>\n ', 'field_parent': False, 'fields': {'line_ids': {'context': u'', 'domain': [], 'relation': u'board.board.line', 'string': u'Action Views', 'type': u'one2many', 'views': {'form': {'arch': u'<form string="Dashboard View">\n ...name="position"/>\n </form>', 'fields': {...}}, 'tree': {'arch': u'<tree string="Dashboard View">\n ...name="position"/>\n </tree>', 'fields': {...}}}}, 'name': {'required': True, 'size': 64, 'string': u'Dashboard', 'type': u'char', 'views': {}}}, 'model': u'board.board', 'name': u'board.board.form', 'toolbar': {'action': [], 'print': [], 'relate': []}, 'type': u'form', 'view_id': 131}})
38 self.__initstack.append(1)
39
40 res = func(self, *args, **kw)
41 try:
42 self.__initstack.pop()
res undefined, func = <function __init__ at 0x12a76e0>, self = Form, args = (), kw = {'context': {'active_id': 110, 'active_ids': [110], 'client': 'web', 'lang': u'en_US', 'tz': False}, 'domain': [], 'editable': True, 'ids': [], 'model': 'board.board', 'nodefault': False, 'nolinks': 1, 'prefix': '', 'readonly': False, 'view': {'arch': u'<?xml version="1.0"?>\n\n <form str... </hpaned>\n </form>\n ', 'field_parent': False, 'fields': {'line_ids': {'context': u'', 'domain': [], 'relation': u'board.board.line', 'string': u'Action Views', 'type': u'one2many', 'views': {'form': {'arch': u'<form string="Dashboard View">\n ...name="position"/>\n </form>', 'fields': {...}}, 'tree': {'arch': u'<tree string="Dashboard View">\n ...name="position"/>\n </tree>', 'fields': {...}}}}, 'name': {'required': True, 'size': 64, 'string': u'Dashboard', 'type': u'char', 'views': {}}}, 'model': u'board.board', 'name': u'board.board.form', 'toolbar': {'action': [], 'print': [], 'relate': []}, 'type': u'form', 'view_id': 131}}
/usr/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/widgets/form.py in __init__(self=Form, prefix='', model='board.board', view={'arch': u'<?xml version="1.0"?>\n\n <form str... </hpaned>\n </form>\n ', 'field_parent': False, 'fields': {'line_ids': {'context': u'', 'domain': [], 'relation': u'board.board.line', 'string': u'Action Views', 'type': u'one2many', 'views': {'form': {'arch': u'<form string="Dashboard View">\n ...name="position"/>\n </form>', 'fields': {'action_id': {...}, 'height': {...}, 'name': {...}, 'position': {...}, 'sequence': {...}, 'width': {...}}}, 'tree': {'arch': u'<tree string="Dashboard View">\n ...name="position"/>\n </tree>', 'fields': {'action_id': {...}, 'name': {...}, 'position': {...}, 'sequence': {...}}}}}, 'name': {'required': True, 'size': 64, 'string': u'Dashboard', 'type': u'char', 'views': {}}}, 'model': u'board.board', 'name': u'board.board.form', 'toolbar': {'action': [], 'print': [], 'relate': []}, 'type': u'form', 'view_id': 131}, ids=[], domain=[], context={'active_id': 110, 'active_ids': [110], 'client': 'web', 'lang': u'en_US', 'tz': False}, editable=True, readonly=False, nodefault=False, nolinks=1)
728 self.view_fields = []
729 self.nb_couter = 0
730 self.frame = self.parse(prefix, dom, fields, values)[0]
731 self.values = [values]
732 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 at 0x35e70e0>, fields = {'line_ids': {'context': u'', 'domain': [], 'relation': u'board.board.line', 'string': u'Action Views', 'type': u'one2many', 'views': {'form': {'arch': u'<form string="Dashboard View">\n ...name="position"/>\n </form>', 'fields': {'action_id': {'context': u'', 'domain': [], 'relation': u'ir.actions.act_window', 'required': True, 'string': u'Action', 'type': u'many2one', 'views': {}}, 'height': {'string': u'Height', 'type': u'integer', 'views': {}}, 'name': {'required': True, 'size': 64, 'string': u'Title', 'type': u'char', 'views': {}}, 'position': {'required': True, 'selection': [...], 'string': u'Position', 'type': u'selection', 'views': {}}, 'sequence': {'string': u'Sequence', 'type': u'integer', 'views': {}}, 'width': {'string': u'Width', 'type': u'integer', 'views': {}}}}, 'tree': {'arch': u'<tree string="Dashboard View">\n ...name="position"/>\n </tree>', 'fields': {'action_id': {'context': u'', 'domain': [], 'relation': u'ir.actions.act_window', 'required': True, 'string': u'Action', 'type': u'many2one', 'views': {}}, 'name': {'required': True, 'size': 64, 'string': u'Title', 'type': u'char', 'views': {}}, 'position': {'required': True, 'selection': [...], 'string': u'Position', 'type': u'selection', 'views': {}}, 'sequence': {'string': u'Sequence', 'type': u'integer', 'views': {}}}}}}, 'name': {'required': True, 'size': 64, 'string': u'Dashboard', 'type': u'char', 'views': {}}}, values = {'name': u'Dashboard'}
/usr/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/widgets/form.py in parse(self=Form, prefix='', root=<xml.dom.minidom.Document instance at 0x35e70e0>, fields={'line_ids': {'context': u'', 'domain': [], 'relation': u'board.board.line', 'string': u'Action Views', 'type': u'one2many', 'views': {'form': {'arch': u'<form string="Dashboard View">\n ...name="position"/>\n </form>', 'fields': {'action_id': {'context': u'', 'domain': [], 'relation': u'ir.actions.act_window', 'required': True, 'string': u'Action', 'type': u'many2one', 'views': {}}, 'height': {'string': u'Height', 'type': u'integer', 'views': {}}, 'name': {'required': True, 'size': 64, 'string': u'Title', 'type': u'char', 'views': {}}, 'position': {'required': True, 'selection': [...], 'string': u'Position', 'type': u'selection', 'views': {}}, 'sequence': {'string': u'Sequence', 'type': u'integer', 'views': {}}, 'width': {'string': u'Width', 'type': u'integer', 'views': {}}}}, 'tree': {'arch': u'<tree string="Dashboard View">\n ...name="position"/>\n </tree>', 'fields': {'action_id': {'context': u'', 'domain': [], 'relation': u'ir.actions.act_window', 'required': True, 'string': u'Action', 'type': u'many2one', 'views': {}}, 'name': {'required': True, 'size': 64, 'string': u'Title', 'type': u'char', 'views': {}}, 'position': {'required': True, 'selection': [...], 'string': u'Position', 'type': u'selection', 'views': {}}, 'sequence': {'string': u'Sequence', 'type': u'integer', 'views': {}}}}}}, 'name': {'required': True, 'size': 64, 'string': u'Dashboard', 'type': u'char', 'views': {}}}, values={'name': u'Dashboard'})
787
788 elif node.localName == 'form':
789 n = self.parse(prefix=prefix, root=node, fields=fields, values=values)
790 views += [Frame(children=n, **attrs)]
791
n undefined, self = Form, self.parse = <bound method Form.parse of Form>, prefix = '', root = <xml.dom.minidom.Document instance at 0x35e70e0>, node = <DOM Element: form at 0x35e7dd0>, fields = {'line_ids': {'context': u'', 'domain': [], 'relation': u'board.board.line', 'string': u'Action Views', 'type': u'one2many', 'views': {'form': {'arch': u'<form string="Dashboard View">\n ...name="position"/>\n </form>', 'fields': {'action_id': {'context': u'', 'domain': [], 'relation': u'ir.actions.act_window', 'required': True, 'string': u'Action', 'type': u'many2one', 'views': {}}, 'height': {'string': u'Height', 'type': u'integer', 'views': {}}, 'name': {'required': True, 'size': 64, 'string': u'Title', 'type': u'char', 'views': {}}, 'position': {'required': True, 'selection': [...], 'string': u'Position', 'type': u'selection', 'views': {}}, 'sequence': {'string': u'Sequence', 'type': u'integer', 'views': {}}, 'width': {'string': u'Width', 'type': u'integer', 'views': {}}}}, 'tree': {'arch': u'<tree string="Dashboard View">\n ...name="position"/>\n </tree>', 'fields': {'action_id': {'context': u'', 'domain': [], 'relation': u'ir.actions.act_window', 'required': True, 'string': u'Action', 'type': u'many2one', 'views': {}}, 'name': {'required': True, 'size': 64, 'string': u'Title', 'type': u'char', 'views': {}}, 'position': {'required': True, 'selection': [...], 'string': u'Position', 'type': u'selection', 'views': {}}, 'sequence': {'string': u'Sequence', 'type': u'integer', 'views': {}}}}}}, 'name': {'required': True, 'size': 64, 'string': u'Dashboard', 'type': u'char', 'views': {}}}, values = {'name': u'Dashboard'}
/usr/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/widgets/form.py in parse(self=Form, prefix='', root=<DOM Element: form at 0x35e7dd0>, fields={'line_ids': {'context': u'', 'domain': [], 'relation': u'board.board.line', 'string': u'Action Views', 'type': u'one2many', 'views': {'form': {'arch': u'<form string="Dashboard View">\n ...name="position"/>\n </form>', 'fields': {'action_id': {'context': u'', 'domain': [], 'relation': u'ir.actions.act_window', 'required': True, 'string': u'Action', 'type': u'many2one', 'views': {}}, 'height': {'string': u'Height', 'type': u'integer', 'views': {}}, 'name': {'required': True, 'size': 64, 'string': u'Title', 'type': u'char', 'views': {}}, 'position': {'required': True, 'selection': [...], 'string': u'Position', 'type': u'selection', 'views': {}}, 'sequence': {'string': u'Sequence', 'type': u'integer', 'views': {}}, 'width': {'string': u'Width', 'type': u'integer', 'views': {}}}}, 'tree': {'arch': u'<tree string="Dashboard View">\n ...name="position"/>\n </tree>', 'fields': {'action_id': {'context': u'', 'domain': [], 'relation': u'ir.actions.act_window', 'required': True, 'string': u'Action', 'type': u'many2one', 'views': {}}, 'name': {'required': True, 'size': 64, 'string': u'Title', 'type': u'char', 'views': {}}, 'position': {'required': True, 'selection': [...], 'string': u'Position', 'type': u'selection', 'views': {}}, 'sequence': {'string': u'Sequence', 'type': u'integer', 'views': {}}}}}}, 'name': {'required': True, 'size': 64, 'string': u'Dashboard', 'type': u'char', 'views': {}}}, values={'name': u'Dashboard'})
836
837 elif node.localName=='hpaned':
838 n = self.parse(prefix=prefix, root=node, fields=fields, values=values)
839 views += [HPaned(children=n, **attrs)]
840
n undefined, self = Form, self.parse = <bound method Form.parse of Form>, prefix = '', root = <DOM Element: form at 0x35e7dd0>, node = <DOM Element: hpaned at 0x35e7b48>, fields = {'line_ids': {'context': u'', 'domain': [], 'relation': u'board.board.line', 'string': u'Action Views', 'type': u'one2many', 'views': {'form': {'arch': u'<form string="Dashboard View">\n ...name="position"/>\n </form>', 'fields': {'action_id': {'context': u'', 'domain': [], 'relation': u'ir.actions.act_window', 'required': True, 'string': u'Action', 'type': u'many2one', 'views': {}}, 'height': {'string': u'Height', 'type': u'integer', 'views': {}}, 'name': {'required': True, 'size': 64, 'string': u'Title', 'type': u'char', 'views': {}}, 'position': {'required': True, 'selection': [...], 'string': u'Position', 'type': u'selection', 'views': {}}, 'sequence': {'string': u'Sequence', 'type': u'integer', 'views': {}}, 'width': {'string': u'Width', 'type': u'integer', 'views': {}}}}, 'tree': {'arch': u'<tree string="Dashboard View">\n ...name="position"/>\n </tree>', 'fields': {'action_id': {'context': u'', 'domain': [], 'relation': u'ir.actions.act_window', 'required': True, 'string': u'Action', 'type': u'many2one', 'views': {}}, 'name': {'required': True, 'size': 64, 'string': u'Title', 'type': u'char', 'views': {}}, 'position': {'required': True, 'selection': [...], 'string': u'Position', 'type': u'selection', 'views': {}}, 'sequence': {'string': u'Sequence', 'type': u'integer', 'views': {}}}}}}, 'name': {'required': True, 'size': 64, 'string': u'Dashboard', 'type': u'char', 'views': {}}}, values = {'name': u'Dashboard'}
/usr/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/widgets/form.py in parse(self=Form, prefix='', root=<DOM Element: hpaned at 0x35e7b48>, fields={'line_ids': {'context': u'', 'domain': [], 'relation': u'board.board.line', 'string': u'Action Views', 'type': u'one2many', 'views': {'form': {'arch': u'<form string="Dashboard View">\n ...name="position"/>\n </form>', 'fields': {'action_id': {'context': u'', 'domain': [], 'relation': u'ir.actions.act_window', 'required': True, 'string': u'Action', 'type': u'many2one', 'views': {}}, 'height': {'string': u'Height', 'type': u'integer', 'views': {}}, 'name': {'required': True, 'size': 64, 'string': u'Title', 'type': u'char', 'views': {}}, 'position': {'required': True, 'selection': [...], 'string': u'Position', 'type': u'selection', 'views': {}}, 'sequence': {'string': u'Sequence', 'type': u'integer', 'views': {}}, 'width': {'string': u'Width', 'type': u'integer', 'views': {}}}}, 'tree': {'arch': u'<tree string="Dashboard View">\n ...name="position"/>\n </tree>', 'fields': {'action_id': {'context': u'', 'domain': [], 'relation': u'ir.actions.act_window', 'required': True, 'string': u'Action', 'type': u'many2one', 'views': {}}, 'name': {'required': True, 'size': 64, 'string': u'Title', 'type': u'char', 'views': {}}, 'position': {'required': True, 'selection': [...], 'string': u'Position', 'type': u'selection', 'views': {}}, 'sequence': {'string': u'Sequence', 'type': u'integer', 'views': {}}}}}}, 'name': {'required': True, 'size': 64, 'string': u'Dashboard', 'type': u'char', 'views': {}}}, values={'name': u'Dashboard'})
844
845 elif node.localName in ('child1', 'child2'):
846 n = self.parse(prefix=prefix, root=node, fields=fields, values=values)
847 attrs['name'] = tools.get_node_xpath(node)
848 views += [Dashbar(children=n, **attrs)]
n undefined, self = Form, self.parse = <bound method Form.parse of Form>, prefix = '', root = <DOM Element: hpaned at 0x35e7b48>, node = <DOM Element: child1 at 0x35215a8>, fields = {'line_ids': {'context': u'', 'domain': [], 'relation': u'board.board.line', 'string': u'Action Views', 'type': u'one2many', 'views': {'form': {'arch': u'<form string="Dashboard View">\n ...name="position"/>\n </form>', 'fields': {'action_id': {'context': u'', 'domain': [], 'relation': u'ir.actions.act_window', 'required': True, 'string': u'Action', 'type': u'many2one', 'views': {}}, 'height': {'string': u'Height', 'type': u'integer', 'views': {}}, 'name': {'required': True, 'size': 64, 'string': u'Title', 'type': u'char', 'views': {}}, 'position': {'required': True, 'selection': [...], 'string': u'Position', 'type': u'selection', 'views': {}}, 'sequence': {'string': u'Sequence', 'type': u'integer', 'views': {}}, 'width': {'string': u'Width', 'type': u'integer', 'views': {}}}}, 'tree': {'arch': u'<tree string="Dashboard View">\n ...name="position"/>\n </tree>', 'fields': {'action_id': {'context': u'', 'domain': [], 'relation': u'ir.actions.act_window', 'required': True, 'string': u'Action', 'type': u'many2one', 'views': {}}, 'name': {'required': True, 'size': 64, 'string': u'Title', 'type': u'char', 'views': {}}, 'position': {'required': True, 'selection': [...], 'string': u'Position', 'type': u'selection', 'views': {}}, 'sequence': {'string': u'Sequence', 'type': u'integer', 'views': {}}}}}}, 'name': {'required': True, 'size': 64, 'string': u'Dashboard', 'type': u'char', 'views': {}}}, values = {'name': u'Dashboard'}
/usr/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/widgets/form.py in parse(self=Form, prefix='', root=<DOM Element: child1 at 0x35215a8>, fields={'line_ids': {'context': u'', 'domain': [], 'relation': u'board.board.line', 'string': u'Action Views', 'type': u'one2many', 'views': {'form': {'arch': u'<form string="Dashboard View">\n ...name="position"/>\n </form>', 'fields': {'action_id': {'context': u'', 'domain': [], 'relation': u'ir.actions.act_window', 'required': True, 'string': u'Action', 'type': u'many2one', 'views': {}}, 'height': {'string': u'Height', 'type': u'integer', 'views': {}}, 'name': {'required': True, 'size': 64, 'string': u'Title', 'type': u'char', 'views': {}}, 'position': {'required': True, 'selection': [...], 'string': u'Position', 'type': u'selection', 'views': {}}, 'sequence': {'string': u'Sequence', 'type': u'integer', 'views': {}}, 'width': {'string': u'Width', 'type': u'integer', 'views': {}}}}, 'tree': {'arch': u'<tree string="Dashboard View">\n ...name="position"/>\n </tree>', 'fields': {'action_id': {'context': u'', 'domain': [], 'relation': u'ir.actions.act_window', 'required': True, 'string': u'Action', 'type': u'many2one', 'views': {}}, 'name': {'required': True, 'size': 64, 'string': u'Title', 'type': u'char', 'views': {}}, 'position': {'required': True, 'selection': [...], 'string': u'Position', 'type': u'selection', 'views': {}}, 'sequence': {'string': u'Sequence', 'type': u'integer', 'views': {}}}}}}, 'name': {'required': True, 'size': 64, 'string': u'Dashboard', 'type': u'char', 'views': {}}}, values={'name': u'Dashboard'})
849
850 elif node.localName=='action':
851 views += [Action(**attrs)]
852 cherrypy.request._terp_dashboard = True
853
views = [], global Action = <class 'openerp.widgets.action.Action'>, attrs = {'name': u'434', 'prefix': '', 'state': None, 'string': u'New Files', 'view_mode': u'tree'}
/usr/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/widgets/base/meta.py in wrapper(self=Action, *args=(), **kw={'name': u'434', 'prefix': '', 'state': None, 'string': u'New Files', 'view_mode': u'tree'})
38 self.__initstack.append(1)
39
40 res = func(self, *args, **kw)
41 try:
42 self.__initstack.pop()
res undefined, func = <function __init__ at 0x12ae6e0>, self = Action, args = (), kw = {'name': u'434', 'prefix': '', 'state': None, 'string': u'New Files', 'view_mode': u'tree'}
/usr/lib/python2.5/site-packages/openerp_web-5.0.6-py2.5.egg/openerp/widgets/action.py in __init__(self=Action, **attrs={'name': u'434', 'prefix': '', 'state': None, 'string': u'New Files', 'view_mode': u'tree'})
56 res = rpc.session.execute('object', 'execute', 'ir.actions.actions', 'read', [self.act_id], ['type'], rpc.session.context)
57 if not res:
58 raise _('Action not found!')
59
60 type=res[0]['type']
builtin _ = <function gettext2 at 0xc35050>
Action not found!: None
I hope you guys can help me out with this problem.
Thanks in advance.
Friendly greets,
Erik
Hello Erik,
Tell us the procedure you follow and the objects./actions you use to set up a dashboard.
Thanks.