Tuesday, September 8, 2026
2 changes · 18.0
Enhancements to existing features
Spanish SII invoice submissions now keep the XML message sent to AEAT instead of a less useful JSON record. This makes it easier for businesses to provide the required information when AEAT reports an error, improving troubleshooting and compliance support.
Original PR description
The SII submission oreviously saved the raw invoice dtaa as a JSON attachment. This is not useful cause the AEAT asks to show the XML if there is an error. The SOAP envelope sent to the AEAT is now captured using zeep's HistoryPlugin, serialised to XML and stored as an attachment instead of the JSON that was before. The tests have been updated so they compare the structure as XML instead of the JSON structure. task-6234840
Odoo now supports Sweden’s national Peppol invoice validation rules and includes missing order and requisition references in electronic invoices. This helps Swedish suppliers reduce invoice rejections and meet local e-invoicing requirements more reliably.
Original PR description
**Description of the issue/feature this PR addresses:** Sweden has adopted national PEPPOL validation rules for BIS Billing 3.0, as defined by SFTI and enforced by Peppol Authorities. These rules…
**Description of the issue/feature this PR addresses:** Sweden has adopted national PEPPOL validation rules for BIS Billing 3.0, as defined by SFTI and enforced by Peppol Authorities. These rules (SE-R-001 to SE-R-013) are not currently enforced in Odoo’s account_edi_ubl_bis3 implementation, which may lead to rejected invoices from Swedish suppliers. **Additionally, two required BIS3 fields were missing from the UBL export:** RequisitionDocumentReference from invoice.ref OrderReference from invoice.invoice_origin **Current behavior before PR:** Missing export of requisition and order references. No enforcement of Swedish national validation rules. Suppliers using SellerTaxRegistrationID are not marked with "Godkänd för F-skatt" as required. **Desired behavior after PR is merged:** Adds missing export fields to the UBL: RequisitionDocumentReference from invoice.ref OrderReference from invoice.invoice_origin Applies national Swedish validation rules (SE-R-001 to SE-R-013) during PEPPOL export. Adds "Godkänd för F-skatt" to the supplier tax registration if the supplier is Swedish. **Technical summary:** _get_partner_party_tax_scheme_vals_list extended to add "Godkänd för F-skatt" for Swedish suppliers. _export_invoice_vals extended to include requisition and order references. _invoice_constraints_peppol_en16931_ubl extended with Swedish constraints: VAT number structure and numeric checks (SE-R-001, SE-R-002) Org number format and length (SE-R-003, SE-R-004) Tax scheme requirement (SE-R-005) Allowed VAT rates (SE-R-006) Bankgiro and Plusgiro formatting (SE-R-007 to SE-R-010) PaymentMeansCode logic (SE-R-011, SE-R-012) Luhn validation of Swedish org number (SE-R-013) **Sources:** https://sfti.se/download/18.427140af179361c4e462cc34/1620641679827/Beskrivning%20av%20svenska%20valideringsregler%202018-11-12.pdf https://docs.peppol.eu/poacc/billing/3.0/bis/#national_rules