Open custom report class(report_int)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Web Client |
Fix Released
|
Undecided
|
Vaibhav Darji |
Bug Description
When I generate the report inheriting a custom class (report_int)
Instead of downloading the pdf. The file opens in the browser.
My Code:
class external_
def __init__(self, pdf):
self.pdf = pdf
def _render(self):
return self.pdf
class report_
def create(self, cr, uid, ids, datas, context={}):
pdf_string = StringIO.StringIO()
...
Code for draw report
...
self.obj = external_
return (self.obj.pdf, 'pdf')
report_
class wizard_
states = {
'init': {
}
},
}
wizard_
This error only occurs when I call the wizard for menuitem
bzr revno 3131 of branch
Related branches
Changed in openobject-client-web: | |
status: | New → Confirmed |
status: | Confirmed → In Progress |
Changed in openobject-client-web: | |
assignee: | nobody → vda(Open ERP) (vda-tiny) |
Hello,
It has been fixed in trunk at revision no: 3217.
<email address hidden>
Please update your code.
Thanks.