Odoo Community Association

Invoice YellowBill Export

Beta License: AGPL-3 OCA/l10n-switzerland Translate me on Weblate Try me on Runboat

This module generates the YellowBill (ybInvoice V2.0.4) XML payload of a customer invoice or credit note.

More information at https://www.postfinance.ch/en/support/documents/downloads-documents.html

This module only builds and validates the payload; how it is transmitted is left to the module implementing the exchange.

Table of contents

Usage

The payload is built by the account.invoice.yellowbill model. The caller passes the identifiers of its own eBill contract:

payload = self.env["account.invoice.yellowbill"]._export_invoice(
    invoice,
    biller_id="99999999999999999",
    ebill_account_id="11111111111111111",
    transaction_id="240101120000-INV0001",
    pdf_data=base64_encoded_pdf,
)
self.env["account.invoice.yellowbill"]._validate_payload(payload)

Known issues / Roadmap

  • Only the first tax of a line is reported.
  • PriceUnit is always reported as 1.

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Camptocamp

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

This module is part of the OCA/l10n-switzerland project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.