Friday, September 18, 2026
2 changes · master
New functionality added to Odoo
Employees in Mexico can now attach official CFDI invoice XML files directly to draft expenses. The system uses the stamped invoice data to create or reuse vendor bills and keep amounts and taxes aligned with fiscal requirements, reducing manual errors and compliance risk.
Original PR description
The standard expense flow is incompatible with Mexican fiscal law in two ways: 1. CFDI (electronic invoices) are already registered with the SAT at receipt time — the employee cannot decide when they enter accounting. 2. Amounts and taxes are locked by the government-stamped XML — they cannot be adjusted freely in the expense form. This module fixes both by letting employees attach a CFDI XML to a draft expense. From the XML, the module automatically creates or reuses the existing vendor bill, syncs the amounts and taxes from the CFDI if the expense is to reimbure to employee or sets the bill to pay when using company account. task-4455671
This update adds a standard sign-in and consent flow so approved third-party AI/MCP tools can access Odoo on a user's behalf without seeing their password. It also improves compatibility with newer MCP clients by returning clearer protocol errors when a requested method is not available.
Original PR description
To understand the OAuth flow, check the commit message. task-6312868 Forward-Port-Of: odoo/enterprise#131912