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.

0

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

By
Janno Liivak
on 7/6/14, 12:44 PM 1,298 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
    execute(self.server.app)
  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
    update_module)
  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
0
Janno Liivak
On 7/11/14, 8:30 AM

Found a fix for this in github (by ccomb)
https://github.com/anybox/odoo/commit/740d5c6cd335f6af0b4eef77513faa2ef21c9fa8

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

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

In my case the bug appere when I -u all 

the patch fix the problem ..

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)

Stats

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