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.
Hello Sinoj,
I have investigated the issue and I agree with you that the problem is being caused only due to duplicate ids in the records. I have found a solution for the same.
It has been fixed by revision 4668 <email address hidden> in the branch lp:~openerp-dev/openobject-addons/6.0-opw-6306-ach.
It will be merged soon in the stable v6.
Thanks for pointing out towards the issue.