Error if start period is same as end period when generating Chart of Accounts

Bug #956100 reported by Taco Vree
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Addons Team 3

Bug Description

If you want to view the Chart of Accounts for 1 period and thus select the same start period and end period, you get the following message:

Client Traceback (most recent call last):
  File "C:\Program Files (x86)\OpenERP 6.1-1\server\openerp\addons\web\common\http.py", line 180, in dispatch
  File "C:\Program Files (x86)\OpenERP 6.1-1\server\openerp\addons\web\controllers\main.py", line 829, in search_read
  File "C:\Program Files (x86)\OpenERP 6.1-1\server\openerp\addons\web\controllers\main.py", line 867, in do_search_read
  File "C:\Program Files (x86)\OpenERP 6.1-1\server\openerp\addons\web\common\openerplib\main.py", line 250, in proxy
  File "C:\Program Files (x86)\OpenERP 6.1-1\server\openerp\addons\web\common\openerplib\main.py", line 117, in proxy
  File "C:\Program Files (x86)\OpenERP 6.1-1\server\openerp\addons\web\common\http.py", line 611, in send

Server Traceback (most recent call last):
  File "C:\Program Files (x86)\OpenERP 6.1-1\server\openerp\addons\web\common\http.py", line 592, in send
  File "C:\Program Files (x86)\OpenERP 6.1-1\server\.\openerp\netsvc.py", line 360, in dispatch_rpc
  File "C:\Program Files (x86)\OpenERP 6.1-1\server\.\openerp\service\web_services.py", line 572, in dispatch
  File "C:\Program Files (x86)\OpenERP 6.1-1\server\.\openerp\osv\osv.py", line 167, in execute_kw
  File "C:\Program Files (x86)\OpenERP 6.1-1\server\.\openerp\osv\osv.py", line 121, in wrapper
  File "C:\Program Files (x86)\OpenERP 6.1-1\server\.\openerp\osv\osv.py", line 176, in execute
  File "C:\Program Files (x86)\OpenERP 6.1-1\server\.\openerp\osv\osv.py", line 164, in execute_cr
  File "C:\Program Files (x86)\OpenERP 6.1-1\server\.\openerp\osv\orm.py", line 3381, in read
  File "C:\Program Files (x86)\OpenERP 6.1-1\server\.\openerp\osv\orm.py", line 3492, in _read_flat
  File "C:\Program Files (x86)\OpenERP 6.1-1\server\.\openerp\osv\fields.py", line 1132, in get
  File "C:\Program Files (x86)\OpenERP 6.1-1\server\openerp\addons\account\account.py", line 290, in __compute
  File "C:\Program Files (x86)\OpenERP 6.1-1\server\openerp\addons\account\account_move_line.py", line 89, in _query_get
TypeError: 'int' object is not iterable

Doing the same in the GTK client results in '0' balances.

I'd expect either a message that similar periods cannot be selected OR the totals for the selected period.

Running 6.1.1 locally on Win 7 with only OpenErp applications.

Revision history for this message
Ravish(OpenERP) (rmu-openerp) wrote :

Hello Taco,

I have checked your issue and faced the same problem. I think Expectation of "message" not valid But total should be there.
That decision will taken by RD team.

Thanks!!

Changed in openobject-addons:
status: New → Incomplete
status: Incomplete → Confirmed
importance: Undecided → Medium
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
Revision history for this message
Carlos Vásquez (ClearCorp) (cv.clearcorp) wrote :

Commited in revision 6512 of 6.1.

Changed in openobject-addons:
status: Confirmed → Fix Committed
Revision history for this message
Cedric Snauwaert (OpenERP) (csn-openerp) wrote :

Hello,

I have tried to redo this bug in latest trunk and couldn't do it anymore, it seems the problem has been fixed. Therefore I'm closing this bug.

Thanks,
Cédric

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