Contributors mailing list archives
Re: Embed existing PDF into QWeb reportby
Acsone SA/NV, Laurent Mignon
From at least Odoo 12 a method hook exists to allows you to postprocess the generated pdf document into ir.actions.report https://github.com/odoo/odoo/blob/14.0/odoo/addons/base/models/ir_actions_report.py#L210
You can override this method to merge your static pdf page with the generated report. Should be easy thanks to this hook.
On Thu, Oct 1, 2020 at 5:42 PM Axel Mendoza <firstname.lastname@example.org> wrote:
Check the usage of this Odoo exampleshttps://github.com/odoo/odoo/blob/27eb561b741fa9c022366c5e5bb16005a0e54712/odoo/addons/base/models/ir_actions_report.py#L655orThe idea is to be able of generate the PDF from the Qweb report and merge it with the static PDF Pages from another file contentI think that It's simpler than the SVG wayOn Thu, Oct 1, 2020 at 10:27 AM Peter Hahn <email@example.com> wrote:I had a look into the code to check how it’s working, but thought it’s not exactly what I’m looking for, because I had to trick around with the placement. I there is nothing obvious to try frirst out there I think I’ll try out the SVG approach first. Am 01.10.20 um 14:47 schrieb Sergio Corato: > Hi Peter, did you try report_qweb_pdf_watermark? Sergio Corato