← Back to team overview

openerp-india team mailing list archive

[Bug 1295664] [NEW] account test module fails when tries to print tranlations with '_'

 

Public bug reported:

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

** Affects: openobject-addons
     Importance: Undecided
         Status: New


** Tags: account accounting test tests

** Description changed:

  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://tx2.txerpa.com:8443/web/webclient/js?db=plusplus:3069
+ 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}
+ 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

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1295664

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

Status in OpenERP Addons (modules):
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1295664/+subscriptions


Follow ups

References