Hi all,
I create a new report in sxw format.
I create the report/report_test.py file:
import pooler
import time
from report import report_sxw

class report_test(report_sxw.rml_parse):
   def __init__(self, cr, uid, name, context):
      super(report_test, self).__init__(cr, 
uid, name, context)
      
report_sxw.report_sxw('report.report_test', 'account.analytic.line', 
'addons/test_module/report/report_test.rml', parser=report_test)
and I add the following line to account.analytic.line XML view:
<report auto="False" id="report_test" model="account.analytic.line" 
name="report_test" string="Analytic Line Overview" 
rml="test_module/report/report_test.rml" />
Then I transform sxw into rml with 
base_report_designer/wizard/tiny_sxw2rml/tiny_sxw2rml.py.
But when I try to open new report on account.analytic.line, OpenERP returns me 
the following error:
ERROR&#58;web-services&#58;&#91;16&#93;&#58; Exception&#58; 
u'report.report_test'
ERROR&#58;web-services&#58;&#91;17&#93;&#58; Traceback &#40;most recent call 
last&#41;&#58;
ERROR&#58;web-services&#58;&#91;18&#93;&#58;&nbsp; &nbsp;File 
"/usr/lib/python2.5/site-packages/openerp-server/service/web_services.py", line 
682, in go
ERROR&#58;web-services&#58;&#91;19&#93;&#58;&nbsp; &nbsp; &nbsp;obj = 
netsvc.LocalService&#40;'report.'+object&#41;
ERROR&#58;web-services&#58;&#91;20&#93;&#58;&nbsp; &nbsp;File 
"/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line 69, in 
__init__
ERROR&#58;web-services&#58;&#91;21&#93;&#58;&nbsp; &nbsp; &nbsp;self._service = 
SERVICES&#91;name&#93;
ERROR&#58;web-services&#58;&#91;22&#93;&#58; KeyError&#58; u'report.report_test'

Someone can help me ? Someone has a solution ?

I have already done this operation for a new partner report and invoice, and 
for theese all work fine.

Thanks in advance

Zipgem




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

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

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


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

Reply via email to