Friday, April 7, 2017
2 changes · 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
This update removes an obsolete report attachment setting and simplifies how reports are regenerated. Users should get fresher report outputs on reprint, while affected areas such as check printing, Belgian POS compliance, and Studio exports continue using the updated report flow.
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 see https://github.com/odoo/odoo/pull/15337 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)