project : KeyError: 'company_id' when group by 'Company'.

Bug #1022496 reported by DJ Patel (OpenERP)
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 1

Bug Description

Install project.

Go to Reporting -> Project -> Task Analysis and try to group by 'Company' without giving access right "Multi Companies".

Its gives the following traceback:

Traceback (most recent call last):
  File "/home/mdi/openerp/rdtools/server/trunk/openerp/osv/osv.py", line 121, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/mdi/openerp/rdtools/server/trunk/openerp/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/mdi/openerp/rdtools/server/trunk/openerp/osv/osv.py", line 164, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/mdi/openerp/rdtools/server/trunk/openerp/osv/orm.py", line 2556, in read_group
    if fget[f]['type'] in ('integer', 'float')
KeyError: 'company_id'

Thanks,
Divyesh

Related branches

Changed in openobject-addons:
importance: Undecided → Medium
status: New → Confirmed
assignee: nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1)
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Hardik Sanchawat (OpenERP) (hsa-openerp) wrote :

Hello,
It has been Fixed in https://code.launchpad.net/~openerp-commiter/openobject-addons/trunk-bug-1022496-hsa

revision-id: <email address hidden>
revno: 7007

It will be available in trunk soon

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Anto (abourguignon) wrote :

Hello,

The fix has been released in trunk (revno 7429). Thanks !

Regards,
Anto.

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.