Friday, April 7, 2017
1 change · master
Code cleanup and technical improvements
This update streamlines how Odoo generates reports, especially invoices, so reprinted documents reflect the latest information instead of relying on previously stored attachments. It also fixes context handling and filename issues, reducing errors and making report downloads more consistent.
Original PR description
Description of the issue/feature this PR addresses: related to task: https://www.odoo.com/web#id=30984&view_type=form&model=project.task&action=333&active_id=248&menu_id=4720 Current behavior before PR: Desired behavior after PR is merged: - remove attachment_use field on ir.actions.report.xml (not used anymore) - refactoring report (model / wkhtmltopdf methods) - fix troubles of passing context from get_action to get_pdf - add optional attachment_name parameter to get_pdf (to specify a attachment name without passing by report.attachment field) -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr