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 could I solve this error when trying to update account module?

Pascal Tremblay
on 2/11/15, 3:46 PM 1,141 views

Please !!!!!


2015-02-11 20:17:25,257 16976 CRITICAL 111aaa openerp.service.server: Failed to initialize database `111aaa`.
Traceback (most recent call last):
  File "/home/odoo/openerp/service/server.py", line 909, in preload_registries
    registry = RegistryManager.new(dbname, update_module=update_module)
  File "/home/odoo/openerp/modules/registry.py", line 346, in new
    openerp.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/home/odoo/openerp/modules/loading.py", line 359, in load_modules
    force, status, report, loaded_modules, update_module)
  File "/home/odoo/openerp/modules/loading.py", line 263, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
  File "/home/odoo/openerp/modules/loading.py", line 182, in load_module_graph
    _load_data(cr, module_name, idref, mode, kind='data')
  File "/home/odoo/openerp/modules/loading.py", line 118, in _load_data
    tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
  File "/home/odoo/openerp/tools/convert.py", line 901, in convert_file
    convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
  File "/home/odoo/openerp/tools/convert.py", line 987, in convert_xml_import
    obj.parse(doc.getroot(), mode=mode)
  File "/home/odoo/openerp/tools/convert.py", line 853, in parse
    self._tags[rec.tag](self.cr, rec, n, mode=mode)
  File "/home/odoo/openerp/tools/convert.py", line 379, in _tag_function
    _eval_xml(self,rec, self.pool, cr, uid, self.idref, context=context)
  File "/home/odoo/openerp/tools/convert.py", line 230, in _eval_xml
    res = getattr(model, method)(cr, uid, *args)
  File "/home/odoo/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/odoo/addons/account/account.py", line 1165, in account_assert_balanced
    "For all Journal Items, the state is valid implies that the sum " \
ParseError: "For all Journal Items, the state is valid implies that the sum of credits equals the sum of debits" while parsing /home/odoo/addons/account/account_assert_test.xml:4, near
<function name="account_assert_balanced" model="account.move"/>

Mariusz Mizgier
On 2/11/15, 4:11 PM

You have two ways to do that (first one is strongly suggested, second one is a brute-force solution)

1. Correct your accout_move table (and account_move_line) because this line says exactly what is wrong - one or more of the moves' sum of debits is not equal to sum of credits.

2. Comment out line 4 in account_assert_test.xml file so that check will not be done under module update.

Thanks to take care of me. I will try it soon.

Pascal Tremblay
on 2/11/15, 6:10 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

2 follower(s)


Asked: 2/11/15, 3:46 PM
Seen: 1141 times
Last updated: 9/11/15, 2:28 AM