[6.1][7.0][trunk] Default report filename is useless in daily use

Bug #1261322 reported by Yann Papouin
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Web (MOVED TO GITHUB)
New
Undecided
Unassigned
OpenERP Community Backports (Web)
Status tracked in 7.0
6.1
Fix Released
Medium
Yann Papouin
7.0
Fix Released
Medium
Ronald Portier (Therp)

Bug Description

This bug report is related to a question asked [1] on stackoverflow.
The main idea is to allow the user to download its report with a reliable filename:
 -"PO00006.pdf" instead of "Request For Quotation.pdf" for a single object report
 -"PO00006-PO00002.pdf" instead of "Request For Quotation.pdf" for a multiple objects report

My proposal is to use the object field name if exists and else to use the current behavior to create the report filename.
(Note that the browser will trim invalid filename data like slash, backslash, etc.)

[1] http://stackoverflow.com/questions/14434846/openerp-custom-report-filename

Tags: 6.1

Related branches

Revision history for this message
Jean Weisbuch (m-jea0-p) wrote :

I "adapted" (move the code a little bit further and remove 2 lines) the patch for OpenERP7 if it might interest anyone.

tags: added: 6.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.