OCA_Reporting_engine_17.0/report_custom_filename
Laurent Mignon (ACSONE) fd70d2e34c [FIX] report_custom_filename: Don't change the initial HTTP response if not OK. (#101)
If an error occurs into the base class, the response received from the call to super is already an HTTP error response.
By modifying this response we break the UI since this reponse is no more the one expeceted in case or error.
This change into the initial HTTP reŝponse leeds to different kind of errors into the UI depending of
the browser used. (Invalid CSRF error, UI locked in waiting response or 'Blocked a frame with origin http://localhost:8069 from accessing a cross-origin frame' or ...)
2017-04-22 15:03:44 +02:00
..
controllers [FIX] report_custom_filename: Don't change the initial HTTP response if not OK. (#101) 2017-04-22 15:03:44 +02:00
i18n OCA Transbot updated translations from Transifex 2017-03-11 01:17:49 -05:00
model [ADD] support qweb reports 2015-09-01 01:01:03 +02:00
static/description [ADD] report_custom_filename 2014-12-19 13:19:55 +01:00
view [ADD] report_custom_filename 2014-12-19 13:19:55 +01:00
README.rst [9.0] [MIG] report_custom_filename (#82) 2016-12-11 12:32:44 +01:00
__init__.py [ADD] report_custom_filename 2014-12-19 13:19:55 +01:00
__openerp__.py [9.0] [MIG] report_custom_filename (#82) 2016-12-11 12:32:44 +01:00

README.rst

Custom report filenames
=======================

This addon allows for custom filenames for reports.

Configuration
=============

To configure this module, open the report whose filename you want to change and fill in the `Download filename` field. This field is evaluated as jinja2 template with `objects` being a list of browse records of the records to print, and `o` the first record. If your model contains a name field, you might write something like `${o.name}_report.pdf` as filename.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/reporting-engine/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback
`here <https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_custom_filename%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
    :alt: Try me on Runbot
    :target: https://runbot.odoo-community.org/runbot/143/9.0

Credits
=======

Contributors
------------

* Holger Brunn <hbrunn@therp.nl>

Icon
----

Icon courtesy of http://www.picol.org/ (download_settings.svg)

Maintainer
----------

.. image:: http://odoo-community.org/logo.png
   :alt: Odoo Community Association
   :target: http://odoo-community.org

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

To contribute to this module, please visit http://odoo-community.org.