c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #30188
[Bug 806456] Re: client_order_ref in Sales should be searchable
Hi,
the probblem I am facing is when I try to preview changes in "Manage Views" from web client I get a full page of python errors.
But if I save the changes the changes work ok on the live system
<type 'exceptions.Exception'> Python 2.6.5: /usr/bin/python
Tue Aug 9 12:28:32 2011
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/openerp-web-6.0.1/lib/cherrypy/_cprequest.py in respond(self=<cherrypy._cprequest.Request object>, path_info='/openerp/viewed/preview/show')
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/openerp-web-6.0.1/lib/cherrypy/__init__.pyc'>, cherrypy.response = <cherrypy._ThreadLocalProxy object>, cherrypy.response.body = [], self = <cherrypy._cprequest.Request object>, self.handler = <cherrypy._cpdispatch.LateParamPageHandler object>
/usr/lib/openerp-web-6.0.1/lib/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', 'viewed', 'preview', 'show'), self.kwargs = {'model': 'sale.order', 'view_id': '752', 'view_type': 'search'}
/usr/lib/openerp-web-6.0.1/openobject/tools/_expose.py in func_wrapper(*args=(<openobject.controllers._root.Root object>, 'openerp', 'viewed', 'preview', 'show'), **kw={'model': 'sale.order', 'view_id': '752', 'view_type': 'search'})
180 raise cherrypy.HTTPError(405)
181
182 res = func(*args, **kw)
183 if format == 'json' or (allow_json and 'allow_json' in cherrypy.request.params):
184 cherrypy.response.headers['Content-Type'] = 'text/javascript'
global res = '/usr/lib/openerp-web-6.0.1/openobject/controllers/templates/base.mako', func = <function default>, args = (<openobject.controllers._root.Root object>, 'openerp', 'viewed', 'preview', 'show'), kw = {'model': 'sale.order', 'view_id': '752', 'view_type': 'search'}
/usr/lib/openerp-web-6.0.1/openobject/controllers/_root.py in default(self=<openobject.controllers._root.Root object>, *args=('openerp', 'viewed', 'preview', 'show'), **kw={'model': 'sale.order', 'view_id': '752', 'view_type': 'search'})
85 request.handler = cherrypy.NotFound()
86
87 return request.handler()
88
89 def find_handler(self):
request = <cherrypy._ThreadLocalProxy object>, request.handler = <cherrypy._cpdispatch.LateParamPageHandler object>
/usr/lib/openerp-web-6.0.1/lib/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 show>, self.args = (), self.kwargs = {'model': 'sale.order', 'view_id': '752', 'view_type': 'search'}
/usr/lib/openerp-web-6.0.1/addons/openerp/controllers/utils.py in wrapper(*args=(), **kw={'model': 'sale.order', 'view_id': '752', 'view_type': 'search'})
110 # User is logged in; allow access
111 clear_login_fields(kw)
112 return fn(*args, **kw)
113 else:
114 action = kw.get('login_action', '')
fn = <bound method Preview.show of <openerp.controllers.viewed.Preview object>>, args = (), kw = {'model': 'sale.order', 'view_id': '752', 'view_type': 'search'}
/usr/lib/openerp-web-6.0.1/openobject/tools/_expose.py in func_wrapper(*args=(<openerp.controllers.viewed.Preview object>,), **kw={'model': 'sale.order', 'view_id': '752', 'view_type': 'search'})
180 raise cherrypy.HTTPError(405)
181
182 res = func(*args, **kw)
183 if format == 'json' or (allow_json and 'allow_json' in cherrypy.request.params):
184 cherrypy.response.headers['Content-Type'] = 'text/javascript'
global res = '/usr/lib/openerp-web-6.0.1/openobject/controllers/templates/base.mako', func = <function show>, args = (<openerp.controllers.viewed.Preview object>,), kw = {'model': 'sale.order', 'view_id': '752', 'view_type': 'search'}
/usr/lib/openerp-web-6.0.1/addons/openerp/controllers/viewed.py in show(self=<openerp.controllers.viewed.Preview object>, model='sale.order', view_id=752, view_type='search')
118 '_terp_view_ids' : [view_id],
119 '_terp_view_mode' : [view_type]})
120 return self.create(params)
121
122 def xml_locate(expr, ref):
self = <openerp.controllers.viewed.Preview object>, self.create = <function create>, params = {'_terp_view_type': 'search', '_terp_offset': 0,...': [], '_terp_count': 0, '_terp_view_ids': [752]}
/usr/lib/openerp-web-6.0.1/addons/openerp/controllers/utils.py in wrapper(*args=({'_terp_view_type': 'search', '_terp_offset': 0,...': [], '_terp_count': 0, '_terp_view_ids': [752]},), **kw={})
110 # User is logged in; allow access
111 clear_login_fields(kw)
112 return fn(*args, **kw)
113 else:
114 action = kw.get('login_action', '')
fn = <bound method Preview.create of <openerp.controllers.viewed.Preview object>>, args = ({'_terp_view_type': 'search', '_terp_offset': 0,...': [], '_terp_count': 0, '_terp_view_ids': [752]},), kw = {}
/usr/lib/openerp-web-6.0.1/openobject/tools/_expose.py in func_wrapper(*args=(<openerp.controllers.viewed.Preview object>, {'_terp_view_type': 'search', '_terp_offset': 0,...': [], '_terp_count': 0, '_terp_view_ids': [752]}), **kw={})
180 raise cherrypy.HTTPError(405)
181
182 res = func(*args, **kw)
183 if format == 'json' or (allow_json and 'allow_json' in cherrypy.request.params):
184 cherrypy.response.headers['Content-Type'] = 'text/javascript'
global res = '/usr/lib/openerp-web-6.0.1/openobject/controllers/templates/base.mako', func = <function create>, args = (<openerp.controllers.viewed.Preview object>, {'_terp_view_type': 'search', '_terp_offset': 0,...': [], '_terp_count': 0, '_terp_view_ids': [752]}), kw = {}
/usr/lib/openerp-web-6.0.1/addons/openerp/controllers/viewed.py in create(self=<openerp.controllers.viewed.Preview object>, params={'_terp_view_type': 'search', '_terp_offset': 0,...': [], '_terp_count': 0, '_terp_view_ids': [752]}, tg_errors=None)
108 @expose(template="/openerp/controllers/templates/viewed_preview.mako")
109 def create(self, params, tg_errors=None):
110 form = self.create_form(params, tg_errors)
111 return dict(form=form)
112
form undefined, self = <openerp.controllers.viewed.Preview object>, self.create_form = <bound method Preview.create_form of <openerp.controllers.viewed.Preview object>>, params = {'_terp_view_type': 'search', '_terp_offset': 0,...': [], '_terp_count': 0, '_terp_view_ids': [752]}, tg_errors = None
/usr/lib/openerp-web-6.0.1/addons/openerp/controllers/form.py in create_form(self=<openerp.controllers.viewed.Preview object>, params={'_terp_view_type': 'search', '_terp_offset': 0,...': [], '_terp_count': 0, '_terp_view_ids': [752]}, tg_errors=None)
184 params.view_type = params.view_type or params.view_mode[0]
185
186 return tw.form_view.ViewForm(params, name="view_form", action="/openerp/form/save")
187
188 @expose(template="/openerp/controllers/templates/form.mako")
global tw = <module 'openerp.widgets' from '/usr/lib/openerp-web-6.0.1/addons/openerp/widgets/__init__.py'>, tw.form_view = <module 'openerp.widgets.form_view' from '/usr/l...p-web-6.0.1/addons/openerp/widgets/form_view.py'>, tw.form_view.ViewForm = <class 'openerp.widgets.form_view.ViewForm'>, params = {'_terp_view_type': 'search', '_terp_offset': 0,...': [], '_terp_count': 0, '_terp_view_ids': [752]}, name undefined, action undefined
/usr/lib/openerp-web-6.0.1/addons/openerp/widgets/form_view.py in __init__(self=ViewForm, params={'_terp_view_type': 'search', '_terp_offset': 0,...': [], '_terp_count': 0, '_terp_view_ids': [752]}, **kw={'action': '/openerp/form/save', 'name': 'view_form'})
88
89 self.screen = Screen(prefix='', hastoolbar=True, hassubmenu=True, editable=editable, readonly=readonly,
90 selectable=params.selectable or 2)
91
92 if self.screen.widget and self.screen.view_type in ['form', 'tree']:
selectable undefined, params = {'_terp_view_type': 'search', '_terp_offset': 0,...': [], '_terp_count': 0, '_terp_view_ids': [752]}, params.selectable = None
/usr/lib/openerp-web-6.0.1/addons/openerp/widgets/screen.py in __init__(self=Screen, params={'_terp_view_type': 'search', '_terp_offset': 0,...': [], '_terp_count': 0, '_terp_view_ids': [752]}, prefix='', name='', views_preloaded={}, hastoolbar=True, hassubmenu=True, editable=True, readonly=False, selectable=2, nolinks=1, **kw={})
105 self.kalendar = params.kalendar
106 if self.view_mode:
107 self.add_view_id(self.view_id, self.view_type)
108
109 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 = 752, self.view_type = 'search'
/usr/lib/openerp-web-6.0.1/addons/openerp/widgets/screen.py in add_view_id(self=Screen, view_id=752, view_type='search')
121 view = cache.fields_view_get(self.model, view_id or False, view_type, ctx, self.hastoolbar, self.hassubmenu)
122
123 self.add_view(view, view_type)
124
125 def add_view(self, view, view_type='form'):
self = Screen, self.add_view = <bound method Screen.add_view of Screen>, view = {'arch': u'<search string="Caut\u0103 ordin de v\xe2nz\u0103ri">\n ... </group>\n </search>', 'field_parent': False, 'fields': {'create_date': {'help': u'Data la care comanda de v\xe2nz\u0103ri este creat\u0103.', 'readonly': True, 'select': True, 'selectable': True, 'string': u'Data cre\u0103rii', 'type': u'datetime', 'views': {}}, 'date_order': {'readonly': True, 'required': True, 'select': True, 'selectable': True, 'states': {'draft': [(u'readonly', False)]}, 'string': u'Termen livrare', 'type': u'date', 'views': {}}, 'name': {'readonly': True, 'required': True, 'select': True, 'selectable': True, 'size': 64, 'states': {'draft': [(u'readonly', False)]}, 'string': u'Referin\u0163\u0103 comand\u0103', 'type': u'char', 'views': {}}, 'partner_id': {'change_default': True, 'context': {}, 'domain': [], 'readonly': True, 'relation': u'res.partner', 'required': True, 'select': True, 'selectable': True, 'states': {'draft': [(u'readonly', False)]}, 'string': u'Client', ...}, 'requested_date': {'help': u'Date on which customer has requested for sales.', 'selectable': True, 'string': u'Data cererii', 'type': u'date', 'views': {}}, 'section_id': {'context': {}, 'domain': [], 'relation': u'crm.case.section', 'selectable': True, 'selection': [(1, u'Sales Department'), (False, u'')], 'string': u'Echipa de v\xe2nz\u0103ri', 'type': u'many2one', 'views': {}}, 'user_id': {'context': {}, 'domain': [], 'relation': u'res.users', 'select': True, 'selectable': True, 'states': {'draft': [(u'readonly', False)]}, 'string': u'Agent de v\xe2nz\u0103ri', 'type': u'many2one', 'views': {}}}, 'model': u'sale.order', 'name': u'sale.order.list.select', 'toolbar': {'action': [{'groups_id': [], 'id': 771, 'model': u'sale.order', 'multi': False, 'name': u'Trimite prin Email', 'string': u'Trimite prin Email', 'type': u'ir.actions.wizard', 'usage': False, 'wiz_name': u'sale.order.email_send_2'}], 'print': [{'attachment': False, 'attachment_use': False, 'auto': False, 'groups_id': [], 'header': True, 'id': 499, 'model': u'sale.order', 'model_id': 345, 'multi': False, 'name': u'Ofert\u0103 / Comand\u0103', ...}, {'attachment': False, 'attachment_use': False, 'auto': False, 'groups_id': [], 'header': True, 'id': 544, 'model': u'sale.order', 'model_id': 345, 'multi': False, 'name': u'Ordin cu Aspect pagin\u0103', ...}], 'relate': []}, 'type': u'search', 'view_id': 752}, view_type = 'search'
/usr/lib/openerp-web-6.0.1/addons/openerp/widgets/screen.py in add_view(self=Screen, view={'arch': u'<search string="Caut\u0103 ordin de v\xe2nz\u0103ri">\n ... </group>\n </search>', 'field_parent': False, 'fields': {'create_date': {'help': u'Data la care comanda de v\xe2nz\u0103ri este creat\u0103.', 'readonly': True, 'select': True, 'selectable': True, 'string': u'Data cre\u0103rii', 'type': u'datetime', 'views': {}}, 'date_order': {'readonly': True, 'required': True, 'select': True, 'selectable': True, 'states': {'draft': [(u'readonly', False)]}, 'string': u'Termen livrare', 'type': u'date', 'views': {}}, 'name': {'readonly': True, 'required': True, 'select': True, 'selectable': True, 'size': 64, 'states': {'draft': [(u'readonly', False)]}, 'string': u'Referin\u0163\u0103 comand\u0103', 'type': u'char', 'views': {}}, 'partner_id': {'change_default': True, 'context': {}, 'domain': [], 'readonly': True, 'relation': u'res.partner', 'required': True, 'select': True, 'selectable': True, 'states': {'draft': [(u'readonly', False)]}, 'string': u'Client', ...}, 'requested_date': {'help': u'Date on which customer has requested for sales.', 'selectable': True, 'string': u'Data cererii', 'type': u'date', 'views': {}}, 'section_id': {'context': {}, 'domain': [], 'relation': u'crm.case.section', 'selectable': True, 'selection': [(1, u'Sales Department'), (False, u'')], 'string': u'Echipa de v\xe2nz\u0103ri', 'type': u'many2one', 'views': {}}, 'user_id': {'context': {}, 'domain': [], 'relation': u'res.users', 'select': True, 'selectable': True, 'states': {'draft': [(u'readonly', False)]}, 'string': u'Agent de v\xe2nz\u0103ri', 'type': u'many2one', 'views': {}}}, 'model': u'sale.order', 'name': u'sale.order.list.select', 'toolbar': {'action': [{'groups_id': [], 'id': 771, 'model': u'sale.order', 'multi': False, 'name': u'Trimite prin Email', 'string': u'Trimite prin Email', 'type': u'ir.actions.wizard', 'usage': False, 'wiz_name': u'sale.order.email_send_2'}], 'print': [{'attachment': False, 'attachment_use': False, 'auto': False, 'groups_id': [], 'header': True, 'id': 499, 'model': u'sale.order', 'model_id': 345, 'multi': False, 'name': u'Ofert\u0103 / Comand\u0103', ...}, {'attachment': False, 'attachment_use': False, 'auto': False, 'groups_id': [], 'header': True, 'id': 544, 'model': u'sale.order', 'model_id': 345, 'multi': False, 'name': u'Ordin cu Aspect pagin\u0103', ...}], 'relate': []}, 'type': u'search', 'view_id': 752}, view_type='search')
129
130 from _views import get_view_widget
131 self.widget = get_view_widget(view_type, self)
132
133 self.string = (self.widget or '') and self.widget.string
self = Screen, self.widget = None, get_view_widget = <function get_view_widget>, view_type = 'search'
/usr/lib/openerp-web-6.0.1/addons/openerp/widgets/_views.py in get_view_widget(kind='search', screen=Screen)
132 view = Views[kind]()
133 except KeyError, e:
134 raise Exception("view '%s' not supported." % kind)
135
136 return view(screen)
builtin Exception = <type 'exceptions.Exception'>, kind = 'search'
<type 'exceptions.Exception'>: view 'search' not supported.
args = ("view 'search' not supported.",)
message = "view 'search' not supported."
Thanks!
--
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/806456
Title:
client_order_ref in Sales should be searchable
Status in OpenERP Modules (addons):
Incomplete
Bug description:
client_order_ref in Sales should be searchable
Thanks!
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/806456/+subscriptions
References