OdooWiki OCA HUB

Account e-invoice Generate

account_e-invoice_generate folder_open OCA/edi open_in_new
Accounting & Finance License: AGPL-3

This is a technical module needed to ensure compatibility between the two electronic invoice generation modules: account_invoice_ubl and account_invoice_factur-x. These 2 modules are able to embed an XML file in the PDF invoice, but for the moment only one XML file can be embedded in the PDF. And it can be useful to have both modules installed, because, for example, you may need to generate Factur-X PDF invoices for some customers and UBL XML files for other customers. So it adds a configuration parameter to decide which XML format is embedded in the PDF.

auto_awesome What this module does

AI-generated from the code · Odoo 13.0

Lets you choose, per company, which electronic invoice XML format (if any) is embedded inside the PDF invoice. It is a technical bridge so UBL and Factur-X modules can coexist.

This module adds a company-level setting that decides whether an XML file is embedded in the PDF of customer invoices and credit notes, and in which format. You find it in the Accounting settings, under a new "Electronic Invoices" section, where a "Select Format" field lets you pick the XML format or "None". The value is stored per company, so companies with several legal entities can configure each one separately.

The module itself does not create any XML format; it only provides the choice and the logic that decides whether an XML can be generated. On account.move, it checks that a format is selected (not "None"), that the document is a customer invoice or customer credit note, that a customer is set, that the invoice is not cancelled, and that it has at least one real invoice line. Only then does it report the chosen format as usable; otherwise it returns nothing, so no XML is embedded.

It also defines the list of invoice report templates used for this purpose and a placeholder method get_payment_identifier meant to be completed by country-specific modules. The actual embedding of the XML is done by the companion UBL and Factur-X modules that build on this one.

Depends on

account
Models and fields (3)
  • res.company · extends an existing modelxml_format_in_pdf_invoice (XML Format embedded in PDF invoice)
  • account.move · extends an existing model
  • res.config.settings · extends an existing modelxml_format_in_pdf_invoice

Text generated by AI (DeepSeek) from reading the Odoo 13.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 2 confirmed, 7 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 13.0

The new configuration parameter XML Format embedded in PDF invoice is available in the menu Accounting > Configuration > Settings.

No verified information in OCA: Installation, Usage.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.