← 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 Anup,
Could you please try to send email after from "Accounting/Periodical Processing/Billing/Send followups".  I have 33 followup records for customer in different date and different amount. Now when I send the mail, it is delivering 33 copy of followup mail for last record created. Please see the email body below. This is body for all 33 mails. Also it says "Please find in attachment..". But I cannot see any attachments.
============================Mail Body==================================================
Date : 2011-07-11

Dear Test Customer,

Please find in attachment a reminder of all your unpaid invoices, for a
total amount due of:

334.38 USD

Thanks,
--
Administrator
Company Name
=======================================================================================
 Please fix and test all cases related to this.
Thank you.

-- 
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):
  Fix Committed

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