Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


How to edit model when browser reports error?

on 6/20/14, 7:50 AM 795 views

I have added a customized field to the res.partner model. I think I must have used an illegal character in the field name, as the browser now reports an error from all attempts to acces/view my databases. I am also unable to edit/fix anything via the browser. What can I do to fix this?

The server traceback:

Server Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 89, in send return openerp.netsvc.dispatch_rpc(service_name, method, args) File "/usr/lib/pymodules/python2.7/openerp/netsvc.py", line 292, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params) File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 626, in dispatch res = fn(db, uid, *params) File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 190, in execute_kw return self.execute(db, uid, obj, method, *args, **kw or {}) File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 132, in wrapper return f(self, dbname, *args, **kwargs) File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 199, in execute res = self.execute_cr(cr, uid, obj, method, *args, **kw) File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 187, in execute_cr return getattr(object, method)(cr, uid, *args, **kw) File "/usr/lib/pymodules/python2.7/openerp/tools/cache.py", line 18, in lookup r = self.lookup(self2, cr, *args) File "/usr/lib/pymodules/python2.7/openerp/tools/cache.py", line 46, in lookup value = d[key] = self.method(self2, cr, *args) File "/usr/lib/pymodules/python2.7/openerp/addons/base/res/res_users.py", line 363, in context_get res = getattr(user,k) or False File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 499, in __getattr__ raise AttributeError(e) AttributeError: u'x_bem\xe6rk'


Ludo - Neobis

--Ludo - Neobis--
| 2 2 5
Hoogvliet, Netherlands
--Ludo - Neobis--


Ludo - Neobis
On 6/20/14, 7:56 AM

Steps to follow:

  • Stop the server
  • Fix the error/field
  • Restart the server using flags "-u all -d $your_db_name"

Should do the trick.

No need to update all modules (-u all), just update the changed one.

Leonardo Donelli
on 6/20/14, 8:41 AM

@Leonardo: That is true, but modules that depend on that module might be changed as well. In my experience a -u all can prevent some weird side-effects of partially loaded modules, but in theory you are absolutely right .

Ludo - Neobis
on 6/20/14, 11:21 AM
On 6/20/14, 8:04 AM

Thank you for the reply, but I am using a hosted solution so I do not see how I am able to stop/restart the servers. Any other ideas?

By server he meant openerp-server, not the physical machine.

Leonardo Donelli
on 6/20/14, 8:40 AM

Leonardo Donelli

--Leonardo Donelli--
| 5 4 8
Cave, Italy
--Leonardo Donelli--

Physics student and part-time developer.

Leonardo Donelli
On 6/20/14, 8:53 AM

If you have an error in your python code, Odoo will fail and never start, so the client won't be able to communciate with Odoo server, therefore you won't be able to do anything.

You have to fix the error and restart openerp-server with the -u <your_module> parameter to update the fixed module.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)


Asked: 6/20/14, 7:50 AM
Seen: 795 times
Last updated: 3/16/15, 8:10 AM