Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
6032 Lượt xem

I've installed sale_report_html, corrected encoding with "## -- encoding: utf-8 --", corrected the includes to "<%include file="mako_header.html"/>", corrected for "TemplateLookupException: Cant locate template for uri u'mako_header.html'" by removing the includes and now get:

RML is not available at specified location or not enough data to print (2)!

(None, None, None)

There are two "RML is not available at specified location or not enough data to print!" errors in ../service/web_services.py. I marked the one in exp_render_report() "(1)" and the one in exp_report() "(2)" so I'd know which was failing. There is more information in /var/log/openerp-server.log:

2013-03-09 13:30:10,694 18932 ERROR ? openerp.report.render.makohtml2html.makohtml2html: report : Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/openerp/report/render/makohtml2html/makohtml2html.py", line 127, in render final_html += self.format_body(etree_obj) File "/usr/lib/pymodules/python2.7/openerp/report/render/makohtml2html/makohtml2html.py", line 113, in format_body </body></html>'''%(body_list,body_list[0],footer,'1',len(body_list)) IndexError: list index out of range

list index out of range

2013-03-09 13:30:10,833 18932 ERROR ? openerp.netsvc: RML is not available at specified location or not enough data to print (2)! (None, None, None)

Ảnh đại diện
Huỷ bỏ

that module is very obsolete and probably never worked correctly. you can use sale_order_webkit from camptocamp instead: http://bazaar.launchpad.net/~sale-core-editors/sale-reports/6.1/files

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 3 15
10523
0
thg 3 15
3178
1
thg 6 24
4208
5
thg 6 23
34806
1
thg 12 23
18931