Contributors mailing list archives

contributors@odoo-community.org

Avatar

Re: Embed existing PDF into QWeb report

by
Acsone SA/NV, Laurent Mignon
- 02/10/2020 07:01:09
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 <aekroft@gmail.com> wrote:
Check the usage of this Odoo examples
or

The idea is to be able of generate the PDF from the Qweb report and merge it with the static PDF Pages from another file content
I think that It's simpler than the SVG way

On Thu, Oct 1, 2020 at 10:27 AM Peter Hahn <peter.hahn@initos.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

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

Reference