Odoo Help


Line 1 : 'bool' object has no attribute 'lower' during database update for file base/security/ir.model.access.csv (v8)

Janno Liivak
on 7/6/14, 12:44 PM 1,903 views

How can I get passed this CRITICAL error?

2014-07-06 16:19:04,506 3883 ERROR applespot werkzeug: Error on request:
Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/werkzeug/serving.py", line 177, in run_wsgi
  File "/Library/Python/2.7/site-packages/werkzeug/serving.py", line 165, in execute
    application_iter = app(environ, start_response)
  File "/Users/jannolii/development/python/odoo/openerp/service/server.py", line 280, in app
    return self.app(e, s)
  File "/Users/jannolii/development/python/odoo/openerp/service/wsgi_server.py", line 216, in application
    return application_unproxied(environ, start_response)
  File "/Users/jannolii/development/python/odoo/openerp/service/wsgi_server.py", line 202, in application_unproxied
    result = handler(environ, start_response)
  File "/Users/jannolii/development/python/odoo/openerp/http.py", line 1165, in __call__
    return self.dispatch(environ, start_response)
  File "/Users/jannolii/development/python/odoo/openerp/http.py", line 1142, in __call__
    return self.app(environ, start_wrapped)
  File "/Library/Python/2.7/site-packages/werkzeug/wsgi.py", line 588, in __call__
    return self.app(environ, start_response)
  File "/Users/jannolii/development/python/odoo/openerp/http.py", line 1297, in dispatch
    ir_http = request.registry['ir.http']
  File "/Users/jannolii/development/python/odoo/openerp/http.py", line 228, in registry
    return openerp.modules.registry.RegistryManager.get(self.db) if self.db else None
  File "/Users/jannolii/development/python/odoo/openerp/modules/registry.py", line 291, in get
  File "/Users/jannolii/development/python/odoo/openerp/modules/registry.py", line 322, in new
    openerp.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/Users/jannolii/development/python/odoo/openerp/modules/loading.py", line 311, in load_modules
    loaded_modules, processed_modules = load_module_graph(cr, graph, status, perform_checks=update_module, report=report)
  File "/Users/jannolii/development/python/odoo/openerp/modules/loading.py", line 186, in load_module_graph
    _load_data(cr, module_name, idref, mode, kind='data')
  File "/Users/jannolii/development/python/odoo/openerp/modules/loading.py", line 118, in _load_data
    tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
  File "/Users/jannolii/development/python/odoo/openerp/tools/convert.py", line 978, in convert_file
    convert_csv_import(cr, module, pathname, fp.read(), idref, mode, noupdate)
  File "/Users/jannolii/development/python/odoo/openerp/tools/convert.py", line 1046, in convert_csv_import
    raise Exception(_('Module loading %s failed: file %s could not be processed:\n %s') % (module, fname, warning_msg))
Exception: Module loading base failed: file base/security/ir.model.access.csv could not be processed:
 Line 1 : 'bool' object has no attribute 'lower'

I tracked this error down to _str_to_boolean method in ir_fields.py (of base module). Somehow it ends up converting numerical 1 to lowercase string. Value is taken from a boolean typed field in file I mentioned in my question. Any ideas why?

Janno Liivak
on 7/6/14, 5:41 PM
Janno Liivak
On 7/11/14, 8:30 AM

Found a fix for this in github (by ccomb)

This fix has been since merged with a 8.0 branch and ... case closed.

Janno Liivak
on 8/11/14, 7:31 AM
Matteo Boscolo
On 7/11/14, 10:32 AM

In my case the bug appere when I -u all 

the patch fix the problem ..

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

2 follower(s)


Asked: 7/6/14, 12:44 PM
Seen: 1903 times
Last updated: 3/16/15, 8:10 AM