[account] Report: Print Taxes Report show errors

Bug #316334 reported by Xavier ALT
6
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
Ajay Patel (OpenERP)

Bug Description

Use Case:
  - Create a new DB (WITHOUT demo data)
  - Select "Accounting only profile"
  - Configurate Database
  - Choose a Chart of Account
  - Go to: Financial Managment / Reporting / Taxes Reports
  - Choose: Print Taxes Report (use default value)

Report are displayed (no exception), but server console show thoses exceptions (full log available as attachment)

[Mon Jan 12 2009 12:04:21] ERROR:report:[01]: report account.vat.declaration:
[Mon Jan 12 2009 12:04:21] ERROR:report:[02]: Traceback (most recent call last):
[Mon Jan 12 2009 12:04:21] ERROR:report:[03]: File "/home/dex/Work/dex4/server/bin/report/report_sxw.py", line 415, in _eval
[Mon Jan 12 2009 12:04:21] ERROR:report:[04]: res = eval(expr, self.localcontext)
[Mon Jan 12 2009 12:04:21] ERROR:report:[05]: File "<string>", line 1, in <module>
[Mon Jan 12 2009 12:04:21] ERROR:report:[06]: File "/home/dex/w/dex4/addons/account/report/tax_report.py", line 62, in _get_lines
[Mon Jan 12 2009 12:04:21] ERROR:report:[07]: res = self._add_codes(based_on,res,period_list)
[Mon Jan 12 2009 12:04:21] ERROR:report:[08]: File "/home/dex/w/dex4/addons/account/report/tax_report.py", line 171, in _add_codes
[Mon Jan 12 2009 12:04:21] ERROR:report:[09]: code.sum_period = sum_tax_add
[Mon Jan 12 2009 12:04:21] ERROR:report:[10]: *UnboundLocalError: local variable 'code' referenced before assignment*
[Mon Jan 12 2009 12:04:21] ERROR:report:[11]:
[Mon Jan 12 2009 12:04:21] ERROR:report:[12]: local variable 'code' referenced before assignment
[Mon Jan 12 2009 12:04:21] ERROR:report:[13]: expr: repeatIn(get_lines(data['form']['based_on'],data['form']['periods'],data['form']['company_id']), 'o')
[Mon Jan 12 2009 12:04:21] ERROR:report:[01]: report account.vat.declaration:
[Mon Jan 12 2009 12:04:21] ERROR:report:[02]: Traceback (most recent call last):
[Mon Jan 12 2009 12:04:21] ERROR:report:[03]: File "/home/dex/Work/dex4/server/bin/report/report_sxw.py", line 415, in _eval
[Mon Jan 12 2009 12:04:21] ERROR:report:[04]: res = eval(expr, self.localcontext)
[Mon Jan 12 2009 12:04:21] ERROR:report:[05]: File "<string>", line 1, in <module>
[Mon Jan 12 2009 12:04:21] ERROR:report:[06]: *NameError: name 'o' is not defined*

  affects openobject-addons

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Xavier ALT T: (+352) 26 67 15 77 38
AJM Technologies S.A. F: (+352) 26 48 23 64
22, rue Goethe / L-1637 Luxembourg G: (+352) 621 372 342

Revision history for this message
Xavier ALT (dex-phx) wrote :
Revision history for this message
Husen Daudi (husendaudi) wrote :

I am getting the same error.

Changed in openobject-addons:
status: New → Confirmed
Changed in openobject-addons:
assignee: nobody → apa-tiny
Revision history for this message
Ajay Patel (OpenERP) (ajay-openerp) wrote :

Committed revision 2081.

Changed in openobject-addons:
status: Confirmed → Fix Released
Revision history for this message
Richard (John) Nopkins@Servosoft (richard-nopkins) wrote :

Hello apa(Open ERP),
nice to see you tried, but i dont think you have tested it once even.
Please test it, report shows 'a' too.

Changed in openobject-addons:
status: Fix Released → Confirmed
Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

Works for me. Can you retry ?
I tested with BE and LU chart of accounts.

Changed in openobject-addons:
status: Confirmed → Fix Released
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.