Skip to content

[19.0][MIG] base_ubl: Migration to 19.0#1317

Merged
OCA-git-bot merged 75 commits into
OCA:19.0from
camptocamp:19.0-mig-base_ubl
Apr 20, 2026
Merged

[19.0][MIG] base_ubl: Migration to 19.0#1317
OCA-git-bot merged 75 commits into
OCA:19.0from
camptocamp:19.0-mig-base_ubl

Conversation

@yankinmax
Copy link
Copy Markdown

No description provided.

alexis-via and others added 30 commits April 6, 2026 16:41
Adapt module account_invoice_import_ubl to use the new base_ubl module
Small fixes

Parse customer/supplier ref in UBL and allow to match partner on 'ref'

Better generation of address block in UBL (make it coherent with the datamodel of Odoo)
Add generation of several UBL blocks: language, delivery, payment terms, customer party, spplier party
Add parsing of zip in UBL party (will be used in the future for delivery partner match)

Add matching of delivery partner

Use country code and state code to match partners
UBL: Add delivery terms and line item UBL XML block generation
UBL: add parsing of delivery block

Add module base_phone_business_document_import

Add unitests in base_business_document_import
Small code enhancements/simplifications

Add module base_business_document_import_stock

Rename key 'quantity' to 'qty' in all parsing dicts['lines']
Add common methods compare_lines() and post_create_or_update()
Make sure price_unit is always untaxed in UBL XML files

Update invoice lines on "Update Existing" invoice import

Add button "Update from File" on supplier invoice form
Use float_round() instead of round()

Add UBL 2.1 XSD files (can be used by all UBL modules ; avoids duplication of UBL XSD files)

Use StreetName/AdditionalStreetName instead of AddressLine blocks, because only the first one is accepted by Chorus Factures for example.

Update UBL methods to generate lines

Add UBL methods to generate some tax blocks

Add partner identification hook in UBL XML party block generation

Print numbers with the approriate number of digits in the XML

Use vat_sanitiezd in base_ubl

Add support for UBL 2.0 (required for e-fff)
PEP8 fix

8.0 Add support for partner bank matching on invoice update (OCA#6)

Add support for partner bank matching on invoice update (before, it was only supported on invoice creation)

8.0 Use try/except when importing external libs (OCA#8)

[FIX] LINT

Use try/except when importing external libs
Remove self.ensure_one() that has nothing to do in an api.model method
Rename __openerp__.py to __manifest__.py and set installable to False

Port base_business_document_import* to v10

Also port all the modules that generate the XML documents: account_invoice_ubl, account_invoice_zugferd, purchase_order_ubl and sale_order_ubl

Rename account_invoice_zugferd to account_invoice_factur-x

Rename account_invoice_import_zugferd to account_invoice_import_factur-x
Add module to support py3o reporting engine:

Add support for allowance and charges on Factur-X invoice import

To avoid headaches with invalid files, now check XSD of XML invoices before parsing it upon import
Move Factur-X/zugferd xsd to base_zugferd

Improve + modularize generation of UBL (up-port from v8 PR)

Add script mass_invoice_import.py
Code cleanup

FIX tax amount in UBL
Enable delivery block in UBL
… to write to is not in binary mode. It may not be written to correctly. [pdf.py:453] (OCA#56)
* [10.0][FIX]Fix supplier search for variant

* fix flake8

* use _select_seller
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: edi-13.0/edi-13.0-base_ubl
Translate-URL: https://translation.odoo-community.org/projects/edi-13-0/edi-13-0-base_ubl/
Some industries still identify party with a GLN and schemeID="GLN"
or with a VAT number and schemeID="<country code>:VAT". This allow to
process it with a parsing hook in the partner matching.

Add module partner_identification_import to match partner by external
identifier using the above hook.
…tner matching.

A shipping partner is not especially related to the ordering party. It
could be any partner. However, we want to ensure that the address is
respected.

Fix-up: PartyIdentification/ID is a 1..N relation. Parse each of them for a match
extract a method from _cii_add_invoice_line_block to lower the
complexity rating of that method and get a green check.
mymage and others added 9 commits April 6, 2026 16:43
Currently translated at 100.0% (6 of 6 strings)

Translation: edi-16.0/edi-16.0-base_ubl
Translate-URL: https://translation.odoo-community.org/projects/edi-16-0/edi-16-0-base_ubl/it/
In an address, the real street is usually put on the last "street"
field. Ensure we get this in StreetName or AdditionalStreetName but not
in another element.

Example:
 - name: Ms H Williams
 - street: Finance and Accounting
 - street2: Australia Post
 - street3: 219–241 Cleveland St
@yankinmax
Copy link
Copy Markdown
Author

yankinmax commented Apr 8, 2026

Hello @OCA/edi-maintainers can you pls take a look and possibly merge?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this can stay as it is not about a past financed migration but the module development itself

Remove references in CREDITS.rst of past financed migrations by other companies

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same remark as on #1316

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand the idea

@OCA-git-bot
Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

Copy link
Copy Markdown
Contributor

@simahawk simahawk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG overall

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same remark as on #1316

@simahawk
Copy link
Copy Markdown
Contributor

/ocabot merge nobump

@OCA-git-bot
Copy link
Copy Markdown
Contributor

On my way to merge this fine PR!
Prepared branch 19.0-ocabot-merge-pr-1317-by-simahawk-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 89f3d3b into OCA:19.0 Apr 20, 2026
7 checks passed
@OCA-git-bot
Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 2e8774d. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.