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

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

Conversation

V3st1g3
Copy link

@V3st1g3 V3st1g3 commented Dec 11, 2024

No description provided.

alexis-via and others added 30 commits December 11, 2024 16:13
…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
…te dir and the built-in templates

Also allow to use only a local template dir
README updated to explain how to configure all this
Special thanks to Sébastien Beau for his help to achieve this
Add support for partner bank matching on invoice update (before, it was only supported on invoice creation)
[FIX] LINT

Use try/except when importing external libs
Remove self.ensure_one() that has nothing to do in an api.model method
…a recent version of pdftotext on travis's ubuntu 12.04 images
Rename __openerp__.py to __manifest__.py and set installable to False
Also port all the modules that generate the XML documents: account_invoice_ubl, account_invoice_zugferd, purchase_order_ubl and sale_order_ubl
… module

Fix spelling mistake and other remarks on README by Tarteo
* Update to work with latest version of invoice2data

* Add requirements.txt file
Update the account_invoice_download_weboob following the changes in account_invoice_download
Add README.rst for the 2 modules
Update text displayed in the invoice import wizard and make list of
supported formats modular (like in bank statement import)
Currently translated at 85.7% (6 of 7 strings)

Translation: edi-10.0/edi-10.0-account_invoice_import_invoice2data
Translate-URL: https://translation.odoo-community.org/projects/edi-10-0/edi-10-0-account_invoice_import_invoice2data/pt/
Currently translated at 100.0% (9 of 9 strings)

Translation: edi-12.0/edi-12.0-account_invoice_import_invoice2data
Translate-URL: https://translation.odoo-community.org/projects/edi-12-0/edi-12-0-account_invoice_import_invoice2data/de/
bosd and others added 28 commits December 11, 2024 16:13
…s README

Exclude account_invoice_import_invoice2data from travis tests
Currently translated at 100.0% (9 of 9 strings)

Translation: edi-14.0/edi-14.0-account_invoice_import_invoice2data
Translate-URL: https://translation.odoo-community.org/projects/edi-14-0/edi-14-0-account_invoice_import_invoice2data/nl/
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.
Issue reported here OCA#544 is fixed in recent version of dateparser
add all available partner, invoice and invoiceline fields
This commit adds an test/example of all the invoice fields which can be imported.
Currently translated at 100.0% (16 of 16 strings)

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

Translation: edi-14.0/edi-14.0-account_invoice_import_invoice2data
Translate-URL: https://translation.odoo-community.org/projects/edi-14-0/edi-14-0-account_invoice_import_invoice2data/es/
… PDF invoices

Restore implementation in OCA#630:
- when importing an invoice for an unknown partner, it creates an empty invoice with PDF a
s attachment
DISABLED_MAIL_CONTEXT is not available yet in v14 and v15.
Add support for discount on lines in the multi-line create scenario
@V3st1g3 V3st1g3 force-pushed the 16.0-mig-account_invoice_import_invoice2data branch from 4f175ab to d75e0fe Compare December 11, 2024 15:45
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.