Hello,

I've made a sale order report myself in changing the original one. I have just 
rewritten the layout by changing the place of fields but now when I try to get 
it through OpenERP in another format that sxw, it fails...

If I try to get it in odt and pdf, it throws that exception : 
Traceback (most recent call last):
  File 
"/usr/lib/python2.5/site-packages/openerp-server/service/web_services.py", line 
687, in go
    (result, format) = obj.create(cr, uid, ids, datas, 
context)
  File 
"/usr/lib/python2.5/site-packages/openerp-server/report/report_sxw.py", line 
364, in create
    return fnct(cr, uid, ids, data, report_xml, context)
  File 
"/usr/lib/python2.5/site-packages/openerp-server/report/report_sxw.py", line 
421, in create_source_pdf
    return self.create_single_pdf(cr, uid, ids, data, report_xml, 
context)
  File 
"/usr/lib/python2.5/site-packages/openerp-server/report/report_sxw.py", line 
439, in create_single_pdf
    pdf = 
create_doc(etree.tostring(processed_rml),rml_parser.localcontext,logo,title.encode('utf8'))
  File 
"/usr/lib/python2.5/site-packages/openerp-server/report/interface.py", line 
199, in create_pdf
    obj.render()
  File 
"/usr/lib/python2.5/site-packages/openerp-server/report/render/render.py", line 
50, in render
    result = self._render()
  File 
"/usr/lib/python2.5/site-packages/openerp-server/report/render/rml.py", line 
41, in _render
    return rml2pdf.parseNode(self.rml, self.localcontext, 
images=self.bin_datas, path=self.path,title=self.title)
  File 
"/usr/lib/python2.5/site-packages/openerp-server/report/render/rml2pdf/trml2pdf.py",
 line 780, in parseNode
    r.render(fp)
  File 
"/usr/lib/python2.5/site-packages/openerp-server/report/render/rml2pdf/trml2pdf.py",
 line 195, in render
    pt_obj.render(el)
  File 
"/usr/lib/python2.5/site-packages/openerp-server/report/render/rml2pdf/trml2pdf.py",
 line 774, in render
    self.doc_tmpl.build(fis)
  File 
"/usr/lib/python2.5/site-packages/reportlab/platypus/doctemplate.py", line 777, 
in build
    self.handle_flowable(flowables)
  File 
"/usr/lib/python2.5/site-packages/reportlab/platypus/doctemplate.py", line 665, 
in handle_flowable
    if frame.add(f, canv, trySplit=self.allowSplitting):
  File "/usr/lib/python2.5/site-packages/reportlab/platypus/frames.py", 
line 174, in _add
    flowable.drawOn(canv, self._x + self._leftExtraIndent, y, 
_sW=aW-w)
  File "/usr/lib/python2.5/site-packages/reportlab/platypus/flowables.py", 
line 105, in drawOn
    self._drawOn(canvas)
  File "/usr/lib/python2.5/site-packages/reportlab/platypus/flowables.py", 
line 89, in _drawOn
    self.draw()#this is the bit you overload
  File "/usr/lib/python2.5/site-packages/reportlab/platypus/tables.py", 
line 1278, in draw
    self._drawBkgrnd()
  File "/usr/lib/python2.5/site-packages/reportlab/platypus/tables.py", 
line 1312, in _drawBkgrnd
    y0 = rowpositions[sr]
IndexError: list index out of range


And if I try in odt it fails too but with a longer message...

I don't know where I'm wrong with that problem ! My report uses the same fields 
as in the original report. I have just replaced them.

Couldn't we change by hand reports ? And if yes, how ? Could somebody help me 
please.


Kind regards,

Quentin.




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

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

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


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

Reply via email to