Comment 1 for bug 665157

Revision history for this message
Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903) wrote :

I uncommented line 122 in account/__openerp__.py

        'account_unit_test.xml',

and got :

[2010-10-22 11:18:09,920][accounting] INFO:init:module account: loading test/account_cash_statement.yml
[2010-10-22 11:18:11,375][accounting] INFO:init:module account: loading test/account_report.yml
/home/max/openerp/openobject-server/bin/report/pyPdf/pdf.py:163: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import struct, md5
[2010-10-22 11:18:12,349][accounting] ERROR:report:'fiscalyear'
Traceback (most recent call last):
  File "/home/max/openerp/openobject-server/bin/report/render/rml2pdf/utils.py", line 89, in _child_get
    eval(n.get('rml_except'), {}, self.localcontext)
  File "/home/max/openerp/openobject-server/bin/tools/safe_eval.py", line 271, in safe_eval
    return eval(test_expr(expr,_SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
  File "", line 1, in <module>
  File "/home/max/openerp/openobject-addons/trunk/account/report/account_tax_report.py", line 46, in get_years
    fiscal_year_name = self.pool.get('account.fiscalyear').name_get(self.cr,self.uid,form['fiscalyear'])
KeyError: 'fiscalyear'
[2010-10-22 11:18:12,644][accounting] ERROR:report:'type'
Traceback (most recent call last):
  File "/home/max/openerp/openobject-server/bin/report/render/rml2pdf/utils.py", line 89, in _child_get
    eval(n.get('rml_except'), {}, self.localcontext)
  File "/home/max/openerp/openobject-server/bin/tools/safe_eval.py", line 271, in safe_eval
    return eval(test_expr(expr,_SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
  File "", line 1, in <module>
  File "/home/max/openerp/openobject-addons/trunk/account/report/account_balance_sheet.py", line 106, in get_data
    if self.res_bl['type'] == 'Net Profit C.F.B.L.':
KeyError: 'type'
[2010-10-22 11:18:12,717][accounting] ERROR:report:'type'
Traceback (most recent call last):
  File "/home/max/openerp/openobject-server/bin/report/render/rml2pdf/utils.py", line 89, in _child_get
    eval(n.get('rml_except'), {}, self.localcontext)
  File "/home/max/openerp/openobject-server/bin/tools/safe_eval.py", line 271, in safe_eval
    return eval(test_expr(expr,_SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
  File "", line 1, in <module>
  File "/home/max/openerp/openobject-addons/trunk/account/report/account_balance_sheet.py", line 106, in get_data
    if self.res_bl['type'] == 'Net Profit C.F.B.L.':
KeyError: 'type'