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][ADD] account_edi_simple_pdf #1091

Open
wants to merge 67 commits into
base: 16.0
Choose a base branch
from

Conversation

hbrunn
Copy link
Member

@hbrunn hbrunn commented Dec 4, 2024

this is the v14 account_invoice_simple_pdf code yanked and integrated with Odoo's version of edi parsing.

For details see #959

alexis-via and others added 30 commits December 4, 2024 11:54
This new module is an improved alternative to the module account_invoice_import_invoice2data. Refer to README for more information.
…urences of cut string

Add tests on string cut method
Before this fix, Page Analysis was always "First page" in the code.
FIX on view inheritance to avoid access right issues
Support combining accent letters
Support bad accent extraction of mupdf on invoices such as Free mobile
Use getattr to find the method which parses a particular field, as
suggested by Graeme Gellatly
…sition_max

Add list of fields on search_read() to improve perf
Add tests such as "July 14th, 2022" and "1er Janvier 2022"
oca-ci and others added 27 commits December 4, 2024 11:54
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: edi-14.0/edi-14.0-account_invoice_import_simple_pdf
Translate-URL: https://translation.odoo-community.org/projects/edi-14-0/edi-14-0-account_invoice_import_simple_pdf/
Add a hook to easily inherit the module
account_invoice_import_simple_pdf to match partners on fields other than
"vat". For example, the module l10n_fr_account_invoice_import_simple_pdf
takes advantage of this hook to match partners on SIREN (French
identification number for companies).
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: edi-14.0/edi-14.0-account_invoice_import_simple_pdf
Translate-URL: https://translation.odoo-community.org/projects/edi-14-0/edi-14-0-account_invoice_import_simple_pdf/
Currently translated at 100.0% (145 of 145 strings)

Translation: edi-14.0/edi-14.0-account_invoice_import_simple_pdf
Translate-URL: https://translation.odoo-community.org/projects/edi-14-0/edi-14-0-account_invoice_import_simple_pdf/fr/
Issue reported here OCA#544 is fixed in recent version of dateparser
Add pypdf text extraction backend
Update README for pypdf, and also for the fact that PyMuPDF is now easy to install
Remove embedded XML file from PDF test file tests/pdf/akretion_france-test.pdf !
Currently translated at 77.9% (113 of 145 strings)

Translation: edi-14.0/edi-14.0-account_invoice_import_simple_pdf
Translate-URL: https://translation.odoo-community.org/projects/edi-14-0/edi-14-0-account_invoice_import_simple_pdf/es/
Currently translated at 100.0% (145 of 145 strings)

Translation: edi-14.0/edi-14.0-account_invoice_import_simple_pdf
Translate-URL: https://translation.odoo-community.org/projects/edi-14-0/edi-14-0-account_invoice_import_simple_pdf/es/
pdfplumber depends on Pillow >= 9.1, whereas Odoo v14 depends on
Pillow==8.1.1. This causes python dependency issues. So, to make it
easier to deploy the module account_invoice_import_simple_pdf, I decided
to remove the support for pdfplumber.
Since october 2023, we have support for pypdf, which is also
a pure-python lib and doesn't depend on additional python libs, so it's
kind of a replacement for pdfplumber.
@hbrunn hbrunn force-pushed the 16.0-account_edi_simple_pdf branch from d8595c1 to 772657b Compare December 4, 2024 18:06
@hbrunn hbrunn force-pushed the 16.0-account_edi_simple_pdf branch from e63190f to 5b30e74 Compare December 4, 2024 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants