Odoo Help

Welcome!

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.

1

Error with custom module after today's update

By
Adrian
on 1/23/15, 8:52 AM 743 views

I update my dev odoo everyday via the v8 nightly .deb and today's broke my custom module and now i cannot even start the ERP server withouth this error pooping up:

2015-01-23 13:51:30,537 25354 INFO esfyt2 openerp.modules.loading: loading 84 modules...
2015-01-23 13:51:30,537 25354 INFO esfyt2 openerp.modules.loading: 84 modules loaded in 0.00s, 0 queries
2015-01-23 13:51:30,695 25354 INFO esfyt2 werkzeug: 127.0.0.1 - - [23/Jan/2015 13:51:30] "POST /longpolling/poll HTTP/1.1" 500 -
2015-01-23 13:51:30,702 25354 ERROR esfyt2 werkzeug: Error on request:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 177, in run_wsgi
    execute(self.server.app)
  File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 165, in execute
    application_iter = app(environ, start_response)
  File "/usr/lib/python2.7/dist-packages/openerp/service/server.py", line 281, in app
    return self.app(e, s)
  File "/usr/lib/python2.7/dist-packages/openerp/service/wsgi_server.py", line 216, in application
    return application_unproxied(environ, start_response)
  File "/usr/lib/python2.7/dist-packages/openerp/service/wsgi_server.py", line 202, in application_unproxied
    result = handler(environ, start_response)
  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 1275, in __call__
    return self.dispatch(environ, start_response)
  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 1249, in __call__
    return self.app(environ, start_wrapped)
  File "/usr/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 579, in __call__
    return self.app(environ, start_response)
  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 1407, in dispatch
    ir_http = request.registry['ir.http']
  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 338, in registry
    return openerp.modules.registry.RegistryManager.get(self.db) if self.db else None
  File "/usr/lib/python2.7/dist-packages/openerp/modules/registry.py", line 335, in get
    update_module)
  File "/usr/lib/python2.7/dist-packages/openerp/modules/registry.py", line 366, in new
    openerp.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/usr/lib/python2.7/dist-packages/openerp/modules/loading.py", line 357, in load_modules
    registry.setup_models(cr)
  File "/usr/lib/python2.7/dist-packages/openerp/modules/registry.py", line 191, in setup_models
    model._setup_fields(cr, SUPERUSER_ID)
  File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 336, in old_api
    result = method(recs, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/openerp/models.py", line 2968, in _setup_fields
    field.setup(self.env)
  File "/usr/lib/python2.7/dist-packages/openerp/fields.py", line 409, in setup
    self._setup_regular(env)
  File "/usr/lib/python2.7/dist-packages/openerp/fields.py", line 999, in _setup_regular
    self._setup_digits(env)
  File "/usr/lib/python2.7/dist-packages/openerp/fields.py", line 995, in _setup_digits
    self.column.digits_change(env.cr)
  File "/usr/lib/python2.7/dist-packages/openerp/osv/fields.py", line 365, in digits_change
    precision, scale = self.digits
TypeError: 'function' object is not iterable

What is this and how can i fix it? 

Full server pastebin: http://paste.ubuntu.com/9836343/

What is in the server log?

zbik
on 1/23/15, 10:03 AM

@zbik thats thet log that the server puts out. but if you want the whole log, i can pastebin it.

Adrian
on 1/23/15, 10:44 AM

you disable esfyt2 by comment all in __init__py, and re-run update, after this enable (in steps, if possible, __init__) and test. PS> why aeroo is searched?

zbik
on 1/23/15, 1:00 PM

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

1 follower(s)

Stats

Asked: 1/23/15, 8:52 AM
Seen: 743 times
Last updated: 3/16/15, 8:10 AM