This module creates draft vendor bills in Odoo Community from received CFDIs stored by the l10n_mx_sat module after SAT bulk download.
Install satcfdi on the server (see l10n_mx_sat documentation) so SAT web services can authenticate with FIEL credentials.
Features:
- Automatic vendor bill creation when received CFDI XML is downloaded
- Deduplication by CFDI UUID
- Tax matching (IVA, ISR, IEPS)
auto_awesome What this module does
AI-generated from the code · Odoo 19.0Automatically creates draft vendor bills in Odoo from received Mexican CFDI XML files downloaded from the SAT. Each bill is linked to its SAT download request and protected against duplicates by fiscal folio (UUID).
When the SAT bulk download stores a received CFDI XML, this module turns it into a draft vendor bill in Odoo. It works together with the SAT download request records, so each imported bill is linked back to the download it came from.
What it does automatically: - Reads the CFDI XML and creates a draft vendor bill (or a vendor refund when the CFDI type is E). - Finds or creates the vendor from the issuer's RFC and name, setting Mexico as country and the RFC as VAT when applicable. - Sets the bill date from the stamp date (or issue date), the reference from series/folio, and the currency from the CFDI. - Creates one bill line per concept, with product/service code, description, quantity, unit price and discount percentage. - Matches taxes (IVA, ISR, IEPS) to existing purchase taxes by rate, including withholding taxes, and posts a message on the bill when a tax cannot be found. - Attaches the original XML file to the bill and posts a message with the fiscal folio.
Business rules and safeguards: - A fiscal folio (UUID) can only exist once per company; duplicates are skipped. - Only CFDI types I and E are imported as vendor bills. - A purchase journal must exist for the company, otherwise the bill is not created.
Where it appears: the new fields are visible on vendor bills (account.move) and on SAT documents (l10n_mx_sat.document), linking each document to its vendor bill.
Depends on
Models and fields (2)
- account.move · extends an existing modell10n_mx_cfdi_uuid (Fiscal Folio), l10n_mx_sat_download_request_id (SAT Download Request)
- l10n_mx_sat.document · extends an existing modelvendor_bill_id (Vendor bill)
Text generated by AI (DeepSeek) from reading the Odoo 19.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-03Confirmation status: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 19.0
Confirmed on 2026-11-03 in branch 19.0 of OCA/l10n-mexico.
terminal Installation and usage
OCA documentation · Odoo 19.0Configuration
Source · Odoo 19.0- Install
l10n_mx_satand configure FIEL credentials in Settings > Companies > SAT Connection. - Enable Download received CFDIs and run Sync now (or wait for the scheduled SAT download).
- Review draft vendor bills created from downloaded XML files.
Usage
Source · Odoo 19.0When l10n_mx_sat downloads received CFDI XML files, this module creates matching draft vendor bills automatically.
Each imported bill includes:
- Partner resolved by RFC (auto-created if not found)
- Tax matching (IVA, ISR, IEPS) using pre-configured Mexican taxes
- The original CFDI XML attached to the bill
- A chatter message with the UUID reference
Review the draft bills and validate them as needed. The CFDI UUID is stored for deduplication — the same invoice will never be imported twice.
Monitor SAT downloads under Accounting > Configuration > SAT Downloads.
No verified information in OCA: Installation.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
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.