Hello,

I am trying to Call customized report which i have generated but when i am 
calling it, i am getting below error.

-------------------------------------------------------------------------------------
Environment Information :
System : Linux-2.6.27-14-generic-i686-with-debian-lenny-sid
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 8.10
Release: 8.10
Codename: intrepid
Operating System Release : 2.6.27-14-generic
Operating System Version : #1 SMP Tue Aug 18 16:25:45 UTC 2009
Operating System Architecture : 32bit
Operating System Locale : en_IN.ISO8859-1
Python Version : 2.5.2
OpenERP-Client Version : 5.0.3
Last revision No. & ID : 984 [email protected]
Traceback (most recent call last):
  File "/home/deven/workspace/server/bin/service/web_services.py", line 687, in 
go
    (result, format) = obj.create(cr, uid, ids, datas, context)
  File "/home/deven/workspace/server/bin/report/report_sxw.py", line 364, in 
create
    return fnct(cr, uid, ids, data, report_xml, context)
  File "/home/deven/workspace/server/bin/report/report_sxw.py", line 421, in 
create_source_pdf
    return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
  File "/home/deven/workspace/server/bin/report/report_sxw.py", line 432, in 
create_single_pdf
    rml_parser.set_context(objs, data, ids, report_xml.report_type)
  File "/home/deven/workspace/server/bin/report/report_sxw.py", line 316, in 
set_context
    self.localcontext['data'] = data
AttributeError: 'purchase_by_product' object has no attribute 'localcontext'
---------------------------------------------------------------------------------------------------------

Server Trace :

No LSB modules are available.
[2009-08-31 19:41:05,370] ERROR:web-services:[01]:
[2009-08-31 19:41:05,371] ERROR:web-services:[02]: Environment Information :
[2009-08-31 19:41:05,371] ERROR:web-services:[03]: System : 
Linux-2.6.27-14-generic-i686-with-debian-lenny-sid
[2009-08-31 19:41:05,371] ERROR:web-services:[04]: OS Name : posix
[2009-08-31 19:41:05,371] ERROR:web-services:[05]: Distributor ID: Ubuntu
[2009-08-31 19:41:05,371] ERROR:web-services:[06]: Description: Ubuntu 8.10
[2009-08-31 19:41:05,371] ERROR:web-services:[07]: Release: 8.10
[2009-08-31 19:41:05,371] ERROR:web-services:[08]: Codename: intrepid
[2009-08-31 19:41:05,371] ERROR:web-services:[09]: Operating System Release : 
2.6.27-14-generic
[2009-08-31 19:41:05,371] ERROR:web-services:[10]: Operating System Version : 
#1 SMP Tue Aug 18 16:25:45 UTC 2009
[2009-08-31 19:41:05,371] ERROR:web-services:[11]: Operating System 
Architecture : 32bit
[2009-08-31 19:41:05,372] ERROR:web-services:[12]: Operating System Locale : 
en_IN.ISO8859-1
[2009-08-31 19:41:05,372] ERROR:web-services:[13]: Python Version : 2.5.2
[2009-08-31 19:41:05,372] ERROR:web-services:[14]: OpenERP-Server Version : 
5.0.3
[2009-08-31 19:41:05,372] ERROR:web-services:[15]: Last revision No. & ID : 
1839 [email protected]
[2009-08-31 19:41:05,372] ERROR:web-services:[16]: Exception: 
'purchase_by_product' object has no attribute 'localcontext'
[2009-08-31 19:41:05,372] ERROR:web-services:[17]: Traceback (most recent call 
last):
[2009-08-31 19:41:05,372] ERROR:web-services:[18]: File 
"/home/deven/workspace/server/bin/service/web_services.py", line 687, in go
[2009-08-31 19:41:05,372] ERROR:web-services:[19]: (result, format) = 
obj.create(cr, uid, ids, datas, context)
[2009-08-31 19:41:05,372] ERROR:web-services:[20]: File 
"/home/deven/workspace/server/bin/report/report_sxw.py", line 364, in create
[2009-08-31 19:41:05,372] ERROR:web-services:[21]: return fnct(cr, uid, ids, 
data, report_xml, context)
[2009-08-31 19:41:05,373] ERROR:web-services:[22]: File 
"/home/deven/workspace/server/bin/report/report_sxw.py", line 421, in 
create_source_pdf
[2009-08-31 19:41:05,373] ERROR:web-services:[23]: return 
self.create_single_pdf(cr, uid, ids, data, report_xml, context)
[2009-08-31 19:41:05,373] ERROR:web-services:[24]: File 
"/home/deven/workspace/server/bin/report/report_sxw.py", line 432, in 
create_single_pdf
[2009-08-31 19:41:05,373] ERROR:web-services:[25]: rml_parser.set_context(objs, 
data, ids, report_xml.report_type)
[2009-08-31 19:41:05,373] ERROR:web-services:[26]: File 
"/home/deven/workspace/server/bin/report/report_sxw.py", line 316, in 
set_context
[2009-08-31 19:41:05,373] ERROR:web-services:[27]: self.localcontext['data'] = 
data
[2009-08-31 19:41:05,373] ERROR:web-services:[28]: AttributeError: 
'purchase_by_product' object has no attribute 'localcontext'
---------------------------------------------------------------------------------------------------------------------------

Can anyone please kindly help me to solve this error?
Waiting for the valuable reply.

------------------------
Sincerely,
Deven
www.4colordesign.com




-------------------- m2f --------------------

--
http://www.openobject.com/forum/viewtopic.php?p=42391#42391

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman2/listinfo/tinyerp-users

Reply via email to