← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 788639] [NEW] Error in 'Follow ups Sent'

 

Public bug reported:

Hi,

On fresh installation of OpenERP 6.0.2, when i try to use :
 Accounting > Reporting > Generic Reporting > Follow-ups Sent
we have the following error message :

 Traceback (most recent call last):
  File "/opt/heonium/OpenERP/oerp_hnm/oeh/server/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/opt/heonium/OpenERP/oerp_hnm/oeh/server/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/opt/heonium/OpenERP/oerp_hnm/oeh/server/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/opt/heonium/OpenERP/oerp_hnm/oeh/server/bin/addons/account_followup/report/account_followup_report.py", line 64, in read_group
    return super(account_followup_stat, self).read_group(cr, uid, domain, *args, **kwargs)
  File "/opt/heonium/OpenERP/oerp_hnm/oeh/server/bin/osv/orm.py", line 2223, in read_group
    d['__domain'] = [(groupby, '=', alldata[d['id']][groupby] or False)] + domain
KeyError: 'followup_id'

This is because in SQL query used to create data for the view, the 'id' is affected to 'partner_id' and this information is not unique.
You can found a  litle patch in attachement.

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/788639

Title:
  Error in 'Follow ups Sent'

Status in OpenERP Modules (addons):
  New

Bug description:
  Hi,

  On fresh installation of OpenERP 6.0.2, when i try to use :
   Accounting > Reporting > Generic Reporting > Follow-ups Sent
  we have the following error message :

   Traceback (most recent call last):
    File "/opt/heonium/OpenERP/oerp_hnm/oeh/server/bin/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/opt/heonium/OpenERP/oerp_hnm/oeh/server/bin/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/opt/heonium/OpenERP/oerp_hnm/oeh/server/bin/osv/osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/opt/heonium/OpenERP/oerp_hnm/oeh/server/bin/addons/account_followup/report/account_followup_report.py", line 64, in read_group
      return super(account_followup_stat, self).read_group(cr, uid, domain, *args, **kwargs)
    File "/opt/heonium/OpenERP/oerp_hnm/oeh/server/bin/osv/orm.py", line 2223, in read_group
      d['__domain'] = [(groupby, '=', alldata[d['id']][groupby] or False)] + domain
  KeyError: 'followup_id'

  This is because in SQL query used to create data for the view, the 'id' is affected to 'partner_id' and this information is not unique.
  You can found a  litle patch in attachement.


Follow ups

References