credativ team mailing list archive
-
credativ team
-
Mailing list archive
-
Message #02957
[Bug 912744] [NEW] Webkit report with a slash in the string
Public bug reported:
Hello,
In version 6.0 (not tested in 6.1) if we create a report like :
<report id="sale.report_sale_order"
name="sale.order.webkit"
auto="False"
model="sale.order"
file="specific_reports/report/sale_order.mako"
string="Quotation / Order"
report_type="webkit" />
We won't be able to print the report, we'll have an error "File not
found".
That's because the name (so the string "Quotation / Order" in my
example) of the report is used to generate the file name and it contains
a /.
addons/report_webkit/webkit_report.py line 104-106 :
tmp_dir = tempfile.gettempdir()
out = report_xml.name+str(time.time())+'.pdf'
out = os.path.join(tmp_dir, out.replace(' ',''))
Best Regards
Guewen
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of OpenERP
Framework Experts, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/912744
Title:
Webkit report with a slash in the string
Status in OpenERP Addons (modules):
New
Bug description:
Hello,
In version 6.0 (not tested in 6.1) if we create a report like :
<report id="sale.report_sale_order"
name="sale.order.webkit"
auto="False"
model="sale.order"
file="specific_reports/report/sale_order.mako"
string="Quotation / Order"
report_type="webkit" />
We won't be able to print the report, we'll have an error "File not
found".
That's because the name (so the string "Quotation / Order" in my
example) of the report is used to generate the file name and it
contains a /.
addons/report_webkit/webkit_report.py line 104-106 :
tmp_dir = tempfile.gettempdir()
out = report_xml.name+str(time.time())+'.pdf'
out = os.path.join(tmp_dir, out.replace(' ',''))
Best Regards
Guewen
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/912744/+subscriptions
Follow ups
References