Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][FIX + IMP] pdf helper: Fix multi-attachments + Add pdf_embed_xml #898

Merged
merged 3 commits into from
Feb 5, 2024

Conversation

jbaudoux
Copy link
Contributor

@jbaudoux jbaudoux commented Dec 22, 2023

  • Extraction of the xml file was failing when there are multi attachments in the PDF. Replaced parser code by odoo.tools.pdf and only return XML data
  • Add a new helper to easily embed an attachment in a PDF.
  • base_ubl: use new pdf.helper.pdf_embed_xml
    • Mark _ubl_add_xml_in_pdf_buffer as deprecated
    • Mark _embed_ubl_xml_in_pdf_content as deprecated

@OCA-git-bot
Copy link
Contributor

Hi @simahawk, @alexis-via,
some modules you are maintaining are being modified, check this out!

@jbaudoux jbaudoux force-pushed the 16.0-imp-pdf_helper branch 5 times, most recently from 10fa05a to 19ed078 Compare December 22, 2023 16:08
Replace code by odoo.tools.pdf
@jbaudoux jbaudoux force-pushed the 16.0-imp-pdf_helper branch from 19ed078 to 99e0d44 Compare December 22, 2023 16:27
@jbaudoux jbaudoux force-pushed the 16.0-imp-pdf_helper branch 3 times, most recently from 6647981 to 22de077 Compare December 22, 2023 17:19
Mark _ubl_add_xml_in_pdf_buffer as deprecated
Mark _embed_ubl_xml_in_pdf_content
Copy link
Contributor

@bosd bosd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review, LGTM

Copy link

@bofiltd bofiltd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

Copy link

@Dranyel-Bosd Dranyel-Bosd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Copy link
Contributor

@simahawk simahawk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG

@simahawk
Copy link
Contributor

simahawk commented Feb 5, 2024

/ocabot merge minor

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 16.0-ocabot-merge-pr-898-by-simahawk-bump-minor, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 2c3e966 into OCA:16.0 Feb 5, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at cdf8209. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants