← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 798615] Re: account_followup.stat in account_followup module getting records with same id and throwing error on opening Follow-ups Sent

 

Hello,
Now there is new issue with followups send wizard. You have changed the id of account_followup_stat to  (l.company_id*10000+l.partner_id*100+l.period_id). But in the wizard, it is using the partner id to browse 'account_followup.stat' (/account_followup/wizard/account_followup_print.py Line#:216). This throws the following error.

Environment Information : 
System : Linux-2.6.35-22-generic-x86_64-with-Ubuntu-10.10-maverick
OS Name : posix
Distributor ID:	Ubuntu
Description:	Ubuntu 10.10
Release:	10.10
Codename:	maverick
Operating System Release : 2.6.35-22-generic
Operating System Version : #33-Ubuntu SMP Sun Sep 19 20:32:27 UTC 2010
Operating System Architecture : 64bit
Operating System Locale : en_US.UTF8
Python Version : 2.6.6
OpenERP-Client Version : 6.0.2
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/home/zbeanz/workspace/server/openerp-trunk-server/bin/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/zbeanz/workspace/server/openerp-trunk-server/bin/service/web_services.py", line 599, in dispatch
    res = fn(db, uid, *params)
  File "/home/zbeanz/workspace/server/openerp-trunk-server/bin/addons/audittrail/audittrail.py", line 511, in execute
    res = my_fct(db, uid, model, method, *args)
  File "/home/zbeanz/workspace/server/openerp-trunk-server/bin/addons/audittrail/audittrail.py", line 495, in my_fct
    return fct_src(db, uid, model, method, *args)
  File "/home/zbeanz/workspace/server/openerp-trunk-server/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/zbeanz/workspace/server/openerp-trunk-server/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/zbeanz/workspace/server/openerp-trunk-server/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/zbeanz/workspace/server/openerp-trunk-server/bin/addons/account_followup/wizard/account_followup_print.py", line 223, in do_mail
    partners.append(line.partner_id)
  File "/home/zbeanz/workspace/server/openerp-trunk-server/bin/osv/orm.py", line 294, in __getattr__
    raise AttributeError(e)
AttributeError: 'Field partner_id not found in browse_record(account_followup.stat, 2345)'

Please check this.
Thank you.

** Changed in: openobject-addons
       Status: Fix Committed => Incomplete

-- 
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/798615

Title:
  account_followup.stat in account_followup module getting records with
  same id and throwing error on opening Follow-ups Sent

Status in OpenERP Modules (addons):
  Incomplete

Bug description:
  We are not able to use "Accounting/Reporting/Generic Reporting/Partners/Follow-ups Sent". In the old database with many invoices and transactions I am getting the following error.
    File "/home/workspace/npg_jonco/openerp-trunk-server/bin/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/workspace/npg_jonco/openerp-trunk-server/bin/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/workspace/npg_jonco/openerp-trunk-server/bin/osv/osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/workspace/npg_jonco/openerp-trunk-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 "/home/workspace/npg_jonco/openerp-trunk-server/bin/osv/orm.py", line 2228, in read_group
      d['__domain'] = [(groupby, '=', alldata[d['id']][groupby] or False)] + domain
  KeyError: 'followup_id'

  To check whether it is an issue with our module, we created new
  database and created some invoice with same partner and validate. Then
  go to "Accounting/Reporting/Generic Reporting/Partners/Follow-ups
  Sent" and open the list. It open without any issues with grouped by
  Followup Level. But when we clicked on Expand icon on "Follow ups" to
  see the list under the follow up, the client hangs. This hangs all
  computer taking lot of CPU. When I check the database, I can see
  account_followup_stat View having records with same ids. I think this
  is the issue. Please check and fix the issue.

  Thankyou.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/798615/+subscriptions


References