account test module fails when tries to print tranlations with '_'

Bug #1295664 reported by Raúl Muñoz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

With the base module account_test enabled:
When you try to execute a new report from Reporting>Accounting Tests < if there is any data to show > it'll crash with an unrelated error:

OpenERP Client error
SyntaxError: JSON.parse: unexpected end of data
https://myserver/web/webclient/js?db=plusplus:3069

The problem is in the file account_test/report/account_test_report.py line 67 where it tries to execute the following:

exec code_exec in localdict
having
        localdict = {
            'cr': self.cr,
            'uid': self.uid,
            'reconciled_inv': reconciled_inv, #specific function used in different tests
            'result': None, #used to store the result of the test
            'column_order': None}

Thus adding '_' : _ to the dict it now knows how to handle tranlations from the report and no longer crashes.

Version affected openerp 7.0

description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.