| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 127 |
| Technical Name |
l10n_mx_edi_autosent_edi_document |
| License | OPL-1 |
| Website | http://www.vauxoo.com |
| Versions | 19.0 |
Mexican Automatic Invoice Sender
This module complements Odoo's automatic invoice-delivery workflow by pre-validating outgoing invoices and marking them as ready for processing. It does not perform CFDI stamping itself, its purpose is to ensure that the customer has the required data so that Odoo's native automatic sending and stamping cron can process the invoice without interruptions.
In real-world scenarios, invoices are often created with missing customer information, such as email, country, ZIP code, or RFC. This module detects those issues early and classifies each invoice either as ready for automatic processing or errored, adding a clear error explanation to the chatter so users know exactly what needs to be fixed.
This behavior is particularly helpful for invoices generated automatically through PoS, Website Sales, or other flows that produce posted invoices where missing customer data typically goes unnoticed.
By surfacing validation errors ahead of time, users can easily filter, review, and correct problematic invoices, ensuring that large volumes of invoices can later be stamped and delivered by Odoo's standard flow.
How It Works
Once an invoice is posted, the system marks it as To Send.
The cron Signed Invoice Email Queue Manager searches for posted invoices and validates the customer data required for stamping and sending (such as country, ZIP code, and email). If an invoice passes validations, it is prepared for the next step otherwise, it is marked as errored and a message is added to the chatter explaining the issue.
The Odoo cron Send invoices automatically processes the prepared invoices, performs the CFDI stamping with the PAC, and sends the email with the PDF and XML (unless email sending is skipped).
Error Management and Re-processing
Invoices marked as errored remain in this state until the underlying issue is fixed. Once corrected, you can use the Change to 'To Send' Signed Invoice server action to reset these invoices back to To Send, making them eligible for processing again.
From the list view, you can use the filter "CFDIs with Autosend Errors" to quickly locate invoices that require review or correction.
Advanced Configuration (For Administrators / Technical Users)
When calling the Signed Invoice Email Queue Manager cron, you can specify the following parameters to adjust module behavior:
- limit (default: 50): Maximum number of invoices to prepare in a single execution.
- minute_delay (default: 5): Minimum number of minutes that must pass since the last change to an invoice before it becomes eligible. This prevents sending or stamping invoices that were just edited and may still be undergoing changes.
- skip_email_check (default: False): If True, the cron skips email validation and allows the invoice to be sent to the PAC even if the customer has no email configured. Email delivery will be omitted. This is useful in workflows where CFDI stamping is required, regardless of email delivery.
![]()
Credits
Contributors
- Carmen Miranda <carmen@vauxoo.com> (Developer)
- Luis Torres <luis_t@vauxoo.com> (Developer)
Maintainer
This module is maintained by Vauxoo.
A Latin American company that provides training, coaching, development and implementation of enterprise management systems and bases its entire operation strategy in the use of Open Source Software and its main product is Odoo.
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module