OdooWiki OCA HUB

Partner customizations for Mexico

l10n_mx_res_partner folder_open OCA/l10n-mexico open_in_new
Localization License: AGPL-3

This module checks the format of the VAT to make sure it complies with the Mexican tax authority (SAT) standard.

auto_awesome What this module does

AI-generated from the code · Odoo 13.0

This module validates the Mexican tax ID (RFC) format on contacts, ensuring it matches the SAT standard for individuals and companies.

When you enter or change a Tax ID (VAT) on a contact in Odoo, this module automatically checks that it follows the official Mexican RFC format. The validation depends on whether the contact is set as an individual (person) or a company.

  • For a person, the Tax ID must start with 4 letters (including Ñ or &), followed by a 6-digit date (YYMMDD), and then 3 optional characters (letters or digits).
  • For a company, the Tax ID must start with 3 letters, followed by the same 6-digit date, and then 3 optional characters.

If the format does not match, Odoo blocks the save and shows an error message: "The VAT is not valid for a natural person." or "The VAT is not valid for a moral person." This check runs every time the Tax ID or the contact type is modified.

The module only affects the Contacts application and the res.partner model. It does not add new menus or screens; the validation appears directly in the contact form when you try to save an invalid Tax ID.

Depends on

contacts
Models and fields (1)
  • res.partner · extends an existing model

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: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 13.0

Confirmed on 2026-11-03 in branch 13.0 of OCA/l10n-mexico.

terminal Installation and usage

OCA documentation · Odoo 13.0
  • Go to Contacts
  • Review the VAT format

No verified information in OCA: Installation, Configuration.

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.