Odoo Help


Error with custom module after today's update

Muszik Adrián
on 1/23/15, 8:52 AM 1,323 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: - - [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
  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
  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
  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
  File "/usr/lib/python2.7/dist-packages/openerp/fields.py", line 409, in setup
  File "/usr/lib/python2.7/dist-packages/openerp/fields.py", line 999, in _setup_regular
  File "/usr/lib/python2.7/dist-packages/openerp/fields.py", line 995, in _setup_digits
  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?

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.

Muszik Adrián
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?

on 1/23/15, 1:00 PM
On 12/19/16, 1:30 PM

verify in the code if the float field digits mentioned as example :

    _columns = {    'currency_rate' : fields.float(digits_compute=dp.get_precision( 'Account' ), string='Currency Rate' ),}

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 1/23/15, 8:52 AM
Seen: 1323 times
Last updated: 12/19/16, 1:30 PM