[trunk] KeyError: 'balance' when accessing the accounting dashboard

Bug #1024470 reported by Maxime Chambreuil (http://www.savoirfairelinux.com)
This bug report is a duplicate of:  Bug #1011492: [charts] dashboard giving traceback. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

Using server, web and addons from trunk without demo data, I installed the accounting module.

When I try to access the Accounting dashboard, I get:

Client Traceback (most recent call last):
  File "/home/max/openerp/web/trunk/addons/web/common/http.py", line 180, in dispatch
    response["result"] = method(controller, self, **self.params)
  File "/home/max/openerp/web/trunk/addons/web_graph/controllers/graph.py", line 77, in data_get
    'data': map(lambda record: _orientation(_convert(x, record[x]), record[yaxis[0]] or 0), res),
  File "/home/max/openerp/web/trunk/addons/web_graph/controllers/graph.py", line 77, in <lambda>
    'data': map(lambda record: _orientation(_convert(x, record[x]), record[yaxis[0]] or 0), res),
KeyError: 'balance'

I removed the graph causing this issue, but then I get another error message when accessing the dashboard:

Client Traceback (most recent call last):
  File "/home/max/openerp/web/trunk/addons/web/common/http.py", line 180, in dispatch
    response["result"] = method(controller, self, **self.params)
  File "/home/max/openerp/web/trunk/addons/web/controllers/main.py", line 1512, in load
    action_id = int(action_id)
TypeError: int() argument must be a string or a number, not 'NoneType'

summary: - [trunk] KeyError: 'balance'
+ [trunk] KeyError: 'balance' when accessing the accounting dashboard
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.