webkit report - debug html does not contain data, pdf is ok
Bug #834942 reported by
Ferdinand
This bug affects 5 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
New
|
Undecided
|
Unassigned |
Bug Description
6.0.3
activating debug opens an empty html form, while debug=off opens the correct report
<body style="border:0; margin: 0;" onload="subst()">
</body>
only for one "big" report for now
Changed in openobject-addons: | |
assignee: | nobody → Nicolas Bessi - Camptocamp (nbessi-c2c) |
To post a comment you must log in.
On line 286, you have the code to set a variable named "deb". For some reason, the render function is not merging the code of the mako file, and the code of the ccs, header, and stuff. I modified the code as below, i don't have any idea if something is lost, but my report works. My report uses functions and they work. Try if it works for you. Still waiting for a pro answer. xml.webkit_ debug :
#deb = head_mako_ tpl.render( helper= helper, tools.ustr( "\n".join( htmls)) , translate_ call, parser_ instance. localcontext) "\n".join( htmls)) .encode( 'UTF-8' )#Just commented all above, and set this deb text_error_ template( ).render( )
logger. error(msg)
raise except_ osv(_(' Webkit render'), msg)
if report_
try :
# css=css,
# _debug=
# _=self.
# **self.
deb = tools.ustr(
except Exception, e:
msg = exceptions.
return (deb, 'html')