Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Localizations
  3. Germany - Leitweg-ID for XRechnung v 19.0
  4. Sales Conditions FAQ

Germany - Leitweg-ID for XRechnung

by Odoo DevHouse https://apps.odoo.com/apps/modules/browse?author=Odoo%20DevHouse
Odoo

$ 99.00

v 19.0 Third Party
Apps purchases are linked to your Odoo account, please sign in or sign up first.
You bought this module and need support? Click here!
  • Description
  • Manifest
  • License

Germany - Leitweg-ID for XRechnung

Give German public-sector customers a dedicated, validated Leitweg-ID field - and route every XRechnung e-invoice automatically, with no extra step at send time.



Problem: No Dedicated, Validated Place for the Leitweg-ID

German federal, state and municipal customers (Bund, Länder, Kommunen) reject e-invoices that don't carry a correct Leitweg-ID - the routing code their back-office systems use to forward an incoming XRechnung to the right department. Out of the box, Odoo has no dedicated field for it:

  • Users end up reusing the generic "Reference" field on the customer, with no indication of what format is expected
  • No validation - a typo in the Leitweg-ID is only discovered when the public-sector customer's system bounces the invoice
  • The Leitweg-ID has a mandatory, publicly specified check digit (KoSIT Format-Spezifikation v2.0.2) that nothing checks for you
  • No automatic link between the field and the BuyerReference (BT-10) of the generated XRechnung XML


Solution: One Field, Validated, Wired Straight into XRechnung

This module adds a dedicated Leitweg-ID field to the customer's Invoicing tab. Every value is checked against the exact grammar and check-digit algorithm published by KoSIT (the German Coordination Office for IT Standards) - format errors are caught immediately, on save, instead of after the invoice bounces back from the customer's system. Once set, the Leitweg-ID is used automatically as the BuyerReference of the XRechnung file generated for that customer via Odoo's standard "Send & Print" - no Peppol registration required.



Key Features
  • Dedicated Leitweg-ID Field - on the customer form, Invoicing tab, right next to the e-invoicing format
  • Full Format Validation - checks the Grobadressierung (2-12 digits), optional Feinadressierung (up to 30 alphanumeric characters) and 2-digit Prüfziffer against the KoSIT grammar
  • Real Check-Digit Verification - implements the ISO/IEC 7064 MOD 97-10 algorithm (the same family used for IBAN) exactly as specified in the official KoSIT Leitweg-ID Format-Spezifikation v2.0.2, verified against its own published worked example
  • Automatic BuyerReference (BT-10) - the Leitweg-ID is injected into the XRechnung UBL XML automatically whenever that customer's invoice is sent
  • No Peppol Activation Needed - works with Odoo's built-in XRechnung (UBL) e-invoicing format independently of any Peppol subscription
  • Safe Fallback - customers without a Leitweg-ID keep Odoo's existing behaviour (partner reference, or "N/A") untouched
  • Zero Core Overrides - a thin extension of the standard XRechnung builder; nothing in Odoo's own e-invoicing logic is replaced


How It Works - Step by Step

1. The Leitweg-ID Field on the Customer's Invoicing Tab

A dedicated Leitweg-ID field appears in the Customer Invoices section, right on the standard Invoicing tab - with an inline example placeholder so nobody has to guess the format.

Empty Leitweg-ID field on the customer Invoicing tab

2. A Bad Check Digit Is Rejected Immediately

Typing 04011000-1234512345-99 (a wrong check digit) and saving triggers an immediate, specific error - explaining the expected format right there, instead of a silent bad value that only surfaces when the customer's system rejects the invoice.

Validation Error dialog rejecting an invalid Leitweg-ID check digit

3. The Correct Leitweg-ID Saves Cleanly - and Is Tracked

Correcting the check digit to 04011000-1234512345-06 (the official KoSIT spec example) saves without any error. The change is logged in the chatter automatically, since the field is tracked like any other important customer setting.

Valid Leitweg-ID saved successfully with the change tracked in the chatter

4. Invoice the Customer Exactly as Usual

With the customer's EDI Format set to Germany (XRechnung), a normal posted invoice needs nothing extra - no special fields to fill in, no separate export step.

Posted customer invoice for the German public-sector partner

5. "Send" Automatically Attaches the XRechnung XML

Odoo's standard Send action already lists an INV_2026_00001_xrechnung.xml attachment next to the PDF - generated automatically because of the customer's EDI Format, with no configuration added by this module.

Send dialog showing the XRechnung XML attachment alongside the PDF

6. The Leitweg-ID Lands in the XML's BuyerReference (BT-10)

Opening the generated XML confirms it: a real xrechnung_3.0 CustomizationID, and <cbc:BuyerReference>04011000-1234512345-06</cbc:BuyerReference> - exactly the Leitweg-ID entered on the customer, with zero manual steps at send time.

Generated XRechnung XML with the Leitweg-ID as BuyerReference, highlighted


Use Cases

Public Sector Billing

Companies invoicing federal, state, or municipal German public bodies that mandate XRechnung with a valid Leitweg-ID.

B2G Suppliers & Contractors

Vendors and service providers who receive a Leitweg-ID from their public-sector client at the time of the order and need to store it reliably.

Compliance-Sensitive AP/AR Teams

Accounting teams that want e-invoices rejected by a bad Leitweg-ID caught in Odoo, not by the customer's inbound e-invoicing platform.



Step-by-Step Usage Guide

Step 1 - Open the Customer's Invoicing Tab

Open the public-sector customer's contact form and go to the Invoicing tab, in the Customer Invoices group.

Step 2 - Enter the Leitweg-ID

Paste the Leitweg-ID the customer provided (e.g. 04011000-1234512345-06) into the new Leitweg-ID field. If it doesn't match the official format or its check digit is wrong, Odoo blocks the save with a clear error instead of letting a bad value through.

Step 3 - Set the E-Invoicing Format to XRechnung

Set the customer's EDI Format to Germany (XRechnung), as usual - this module doesn't change how that format is selected.

Step 4 - Invoice Normally

Create and send the invoice through Send & Print as usual. The generated XRechnung XML carries the Leitweg-ID as its BuyerReference automatically - nothing else to configure.

Pro Tip - Regenerating a File

If the Leitweg-ID was added after an XRechnung file was already generated, just re-run Send & Print on the invoice to regenerate it with the correct BuyerReference.


Need Help or Want a Custom Feature?

Contact Support


Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Invoicing (account)
• Discuss (mail)
Lines of code 55
Technical Name l10n_de_leitweg_id
LicenseOPL-1
Websitehttps://apps.odoo.com/apps/modules/browse?author=Odoo%20DevHouse
Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with