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: Migration to 16.0 #1064

Draft
wants to merge 126 commits into
base: 16.0
Choose a base branch
from

Conversation

V3st1g3
Copy link

@V3st1g3 V3st1g3 commented Nov 8, 2024

No description provided.

alexis-via and others added 30 commits November 7, 2024 17:01
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
Yvesldff and others added 26 commits November 7, 2024 17:29
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/
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.
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/
* line notes

* section headers

* narration fields
Currently translated at 93.1% (135 of 145 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/
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
Currently translated at 100.0% (145 of 145 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/
In the supplier invoice tree view, when the user clicks on the "Upload"
button at the top of the tree view, he now uses the OCA invoice import
wizard instead of the native feature from the 'account' module.
Currently translated at 100.0% (145 of 145 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/es/
Add support for discount on lines in the multi-line create scenario
@V3st1g3 V3st1g3 force-pushed the 16.0-mig-account_invoice_import branch from 57c161f to a8f10a7 Compare November 8, 2024 15:12
@V3st1g3 V3st1g3 force-pushed the 16.0-mig-account_invoice_import branch from a8f10a7 to 2fd8464 Compare November 8, 2024 15:14
@V3st1g3 V3st1g3 marked this pull request as draft November 8, 2024 15: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.