-
-
Notifications
You must be signed in to change notification settings - Fork 310
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
[15.0][ADD] account_edi_simple_pdf #959
base: 15.0
Are you sure you want to change the base?
Conversation
@hbrunn check this that we are cooking that is very generic for any possible document: https://github.com/Tecnativa/edi/tree/15.0-add-base_import_pdf_simple/base_import_pdf_simple We have started it for importing sales orders, but it can serve for anything We'll propose it to OCA soon. |
oh that looks interesting, thanks. The readme is hard to read for me though ;-) Thing is, @alexis-via's code is time proven and my customer is used to it, they just want to have that in their v15 instance too. And rather now than soon. I don't see a problem having We do already keep the account_import* stack and the parallel facturx import here, so more choice, the merrier I'd say. Actually for facturx a comparison in the repo's/module's readme would be very helpful too, I can't tell a customer from the top off my head why they should use the OCA version instead of the core one. @alexis-via what's your take on keeping the history here? And would you prefer me to disentangle this completely from account_invoice_import_simple_pdf whenever this lands in v15, or prepare for sharing most of the code? |
The problem with existing |
yes, watch your logs for messages about recognizing a partner, and further messages |
Another approach to try is #964 The fetchmail/import gateway is very simple to be added. |
When trying the test upload within Contact's tab "Vendor Bill Import" I get the following error while when trying to import the same invoice within Invoicing -> Vendors -> Bills, Upload button I get useful messages such as "Missing invoice number format configuration on partner". For me this makes the test upload functionality useless.
|
account_edi_simple_pdf/models/account_invoice_import_simple_pdf_mixin.py
Show resolved
Hide resolved
@jans23 thanks for your input. Note however that this is a draft and not really ready for review, even though it (mostly) works for my customer already the way they need it to. I mainly wanted to start a discussion about the future of invoice import in Odoo/OCA. Regarding your question about import configurations: That's part of the |
This new module is an improved alternative to the module account_invoice_import_invoice2data. Refer to README for more information.
Make pre-commit green
…urences of cut string Add tests on string cut method
…e VAT number of the customer
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
Migration scripts provided
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
…instead of pip To goal: make travis green!
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/
Add a tests for this new type.
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.
…f dateparser and regex
904b42e
to
4bbd0f7
Compare
this is account_invoice_import_simple_pdf but then plugged into Odoo's existing invoice import mechanism.
Missing:
I've started this as a spiritual successor of account_invoice_import_simple_pdf, that's why I preserved the commits, and prepared for possibly having both - we'd have to move the configuration and the mixin to its own module on which both depend and just apply the mixin. But now I'm unsure, as those functionalities conflict, so coexistence doesn't really seem an option to me.
What do reviewers think?