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][MIG] account_invoice_import #752

Closed
wants to merge 150 commits into from

Conversation

acsonefho
Copy link
Contributor

Based on #668

alexis-via and others added 30 commits April 24, 2023 08:50
FIX raise error when we don't identify a partner

Update README
Rename test/pdf/ to test/invoices/ to host XML invoices too
…invoice_zugferd (see README.rst for more info)

Move the ZUGFeRD/CII-specific code of account_invoice_import to account_invoice_import_zugferd
Disable test of invoice2data, because this lib is difficult to install
Add support for UBL refunds

If you have an UBL refund that I could use to test, please contact me !
Convert YAML test to unittest
…edicated module account_invoice_import_invoice2data

Update README.rst and headers to latest OCA conventions.
Better key names in the parsed_inv dict
parsed_inv doesn't need to be JSON serializable anymore (small drawback: the invoice is parsed a second time on the second step... but the second step is rarely used)
Move code from account_invoice_import_invoice2data to account_invoice_import
Update REAME and some interface strings about UBL being an ISO standard
Small code changes
…voice dict, cleaner organisation)

Code refactoring: move code in base_business_document_import, factorise code for tax matching (it was duplicated in UBL and ZUGFeRD)
Now support PDF with embedded UBL XML file
Enable unittests on account_invoice_import_ubl
More absolute xpath in account_invoice_import_ubl instead of relative xpath

WARNING: these are big changes, I may have broken a few details
Adapt module account_invoice_import_ubl to use the new base_ubl module
Small fixes
Add unitests in base_business_document_import
Small code enhancements/simplifications
Code cleanup/minor changes
OCA-git-bot and others added 27 commits April 24, 2023 08:50
Currently translated at 96.4% (136 of 141 strings)

Translation: edi-14.0/edi-14.0-account_invoice_import
Translate-URL: https://translation.odoo-community.org/projects/edi-14-0/edi-14-0-account_invoice_import/nl/
* do not spoil emails
* message_id is enough to find the msg in Odoo
* no need to be so verbose on where it happened since the logger name is precise
You can now set a specific journal, either via the
account.invoice.import.config or by the pivot dict.
Fix setting invoice_date_due via pivot dict.
Improve multi-company handling in tests.
Add test for setting journal via pivot dict.
Add more checks in test.
Implement what is described in issue OCA#610:
- account_invoice_import_simple_pdf and account_invoice_import_invoice2data can now be use
d together
- when importing an invoice for an unknown partner, it creates an empty invoice with PDF a
s attachment
- when importing an invoice via mail gateway and the from email is set
on a partner that doesn't have any import config, create a supplier
invoice with PDF as attachment and with that partner
- when importing an invoice via mail gateway and the from email is set
on a partner that has a single-line import config, create a supplier
invoice with PDF as attachment, that partner and 1 invoice line with price_unit=0.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: edi-14.0/edi-14.0-account_invoice_import
Translate-URL: https://translation.odoo-community.org/projects/edi-14-0/edi-14-0-account_invoice_import/
FIX import of XML files via mail gateway
FIX attachment number in logs
Currently translated at 94.3% (100 of 106 strings)

Translation: edi-14.0/edi-14.0-account_invoice_import
Translate-URL: https://translation.odoo-community.org/projects/edi-14-0/edi-14-0-account_invoice_import/fr/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: edi-14.0/edi-14.0-account_invoice_import
Translate-URL: https://translation.odoo-community.org/projects/edi-14-0/edi-14-0-account_invoice_import/
The method get_invoice_line_account() was removed from the "account"
module in odoo v13. So we now use the underlying method get_product_accounts()
Fixes bug OCA#572
@acsonefho
Copy link
Contributor Author

I close the PR in favor of #753

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.