Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Accounting
  3. Manage Mexican Documents v 17.0
  4. Sales Conditions FAQ

Manage Mexican Documents

by Vauxoo
Odoo

$ 1011.32

v 17.0 Third Party
This module requires Odoo Enterprise Edition.
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Documents (documents)
• Discuss (mail)
• Invoicing (account)
• Accounting (account_accountant)
Community Apps Dependencies Show
EDI Documents
Lines of code 2948
Technical Name l10n_mx_edi_document
LicenseOPL-1
Versions 16.0 17.0 18.0
You bought this module and need support? Click here!
  • Description
  • License

Manage Mexican Documents

Enhances Odoo's Documents module with an automated solution for managing electronic invoices (CFDIs) in Mexico.

Key Features

  • Full integration with Odoo's Documents application for easy file management.
  • Validate the CFDI structure and content before generating documents.
  • Automatic creation and attachment of customer invoices, vendor bills, credit notes, and payments based on CFDIs.
  • Prevention of duplicate record creation.
  • Linking to existing records in Odoo to complement fiscal information.

Usage

  1. Go to Documents application, and navigate to the Finance folder (workspace).

    l10n_mx_edi_document/static/src/img/finance_folder.png
  2. Upload the CFDI file of the invoice or payment you want to process by clicking the Upload button or dragging the file into the workspace.

    l10n_mx_edi_document/static/src/img/upload_file.png

    When uploading the document, the partner of the record is established if a contact created in Odoo with the same RFC as the CFDI is found.

    l10n_mx_edi_document/static/src/img/default_partner.png

    It is worth mentioning that if the system parameter mx_documents_omit_partner_generation is configured, and a partner does not exist in Odoo with the same RFC, it will not be assigned.

    l10n_mx_edi_document/static/src/img/not_default_partner.png
  3. Once the file is uploaded, the Create EDI Document action will be enabled. By default, the invoice date is taken from the CFDI, but it is possible to configure the date, journal, and account for the new record. Clicking this option will generate the corresponding customer invoice, vendor bill, or payment. The created or associated record (in the case of payments) will be displayed, and a message will be added to the chatter indicating the action performed.

    l10n_mx_edi_document/static/src/img/create_edi_document.png

Invoices

  • Customer Invoices: If you need to import customer invoices and configure the customer journal or customer account, go to Configuration > Settings, check the Import Customer Invoices? option.

    l10n_mx_edi_document/static/src/img/import_customer_invoice.png l10n_mx_edi_document/static/src/img/customer_invoice_fields.png

    The created Customer Invoice will be generated with the configured values.

    l10n_mx_edi_document/static/src/img/customer_invoice.png
  • Vendor Bills: The fields for importing Vendor Bills are visible by default. As with Customer Invoices, you can configure them to create the new record.

    l10n_mx_edi_document/static/src/img/vendor_bill_fields.png l10n_mx_edi_document/static/src/img/vendor_bill.png
  • Note: For both customer invoices and vendor bills, the selected account will only be applied to the invoice lines if neither the product nor its category has an Income/Expense Account configured, as these take precedence.

Search criteria to prevent invoice duplication

  • Fiscal folio: The system checks whether the folio matches any previously created invoice.

If no matches are found by fiscal folio, a secondary search is performed within the non-canceled invoices using the following criteria:

  • Partner.
  • Total amount.
  • Date: The search is performed only within the same day or month/period as the CFDI.
  • Just by Folio: If the user created the invoice from a purchase order (PO), the CFDI folio will be used to search for the invoice by the reference field.
  • Serie and Fiscal Folio: The search is performed on all invoices.

Notes:

  • To narrow the invoice search scope based on dates, it is necessary to configure the system parameter documents_force_use_date as day or month. To avoid creating duplicates in scenarios where multiple invoices share the same or similar amounts.

    l10n_mx_edi_document/static/src/img/documents_force_use_date.png

According to the system parameter's value, the search is performed in one of the following ways:

  1. day: The search is performed on invoices with the same date as the uploaded CFDI.
  2. month: The search is performed on invoices within the same month as the uploaded CFDI.
  • To search just by folio it is necessary to configure the system parameter l10n_mx_force_only_folio.

    l10n_mx_edi_document/static/src/img/l10n_mx_force_only_folio.png

EDI documents for vendor bills and refunds

XML files uploaded from the Documents module can be directly attached to vendor bills and refunds. For a document to be attached, it must meet the following requirements:

  • The emitter's RFC must match the company's RFC, and the receiver's RFC must match the customer's RFC.
  • The total amount of the vendor bill must match the total in the XML.
  • The currency in the vendor bill must match the currency in the XML.
  • The fiscal folio in the XML must not belong to any other record in the system.

The document can be attached as follows:

  1. After confirming a vendor bill or refund, click the Attach EDI Document button.

    l10n_mx_edi_document/static/src/img/attach_edi_document.png
  2. In the wizard, click on Add line to display the available documents.

    l10n_mx_edi_document/static/src/img/add_line.png
  3. A second wizard will display the documents belonging to the invoice partner, uploaded through the Documents module. Select one and click the Select button.

    l10n_mx_edi_document/static/src/img/select_doc.png
  4. The selected document will now appear in the attachment wizard. Click the Relate Document button to attach it.

    l10n_mx_edi_document/static/src/img/relate_doc.png
  5. The document will be attached, and a message will be added in the chatter indicating that the action was performed through the Documents module.

    l10n_mx_edi_document/static/src/img/doc_related.png

Notes:

  • If the document cannot be attached, an error will be displayed indicating which requirements are not met, so the user can verify their record or the XML they are trying to attach.

    l10n_mx_edi_document/static/src/img/user_error.png
  • The messages related to the document processing can be viewed from the document inspector by clicking on the Open Chatter icon, as well as when the record is not created (such as when the mx_documents_omit_partner_generation parameter is configured).

    l10n_mx_edi_document/static/src/img/open_chatter.png
  • By default, the total in the vendor bill must match the total in the XML.

    If the company works with partners where intentional differences are expected (e.g., vendor invoices higher or lower than the registered bill), you can assign the partner category Allow differences in XML total to the vendor.

    When this category is set, the system will skip the total validation for that partner.

Partner Creation for Invoices and Payments

There are two scenarios:

  1. Automatic partner creation: When creating a new invoice or payment, the system verifies whether the CFDI's partner already exists by searching for their RFC. If no match is found, a new partner is automatically created.

    l10n_mx_edi_document/static/src/img/new_partner_created.png
  2. Manual creation of the new partner: To prevent the automatic creation of a CFDI partner, the parameter mx_documents_omit_partner_generation must be configured. If the partner is not found, the file will be sent to the Incorrect folder, i.e. the invoice will not be created until the partner is manually created and the EDI document creation is attempted again.

    l10n_mx_edi_document/static/src/img/mx_documents_omit_partner_generation.png l10n_mx_edi_document/static/src/img/not_partner.png

Payments

When uploading a CFDI payment, you can configure the payment journal used to create the payment in Odoo. To do this, do the following:

  • Go to Configuration > Settings in the Documents application.
l10n_mx_edi_document/static/src/img/settings.png
  • Select the Show Payment Journal? field.
l10n_mx_edi_document/static/src/img/show_payment_journal.png

Once you have completed these steps, you will see the field to set the payment journal when you select the CFDI document.

l10n_mx_edi_document/static/src/img/payment_journal.png

Then the system reads the DoctoRelacionado node to determine which invoice(s) the payment should be linked to. This ensures that the payment is correctly associated with an existing invoice or triggers the creation of a new record if necessary.

There are four possible processing scenarios, each described below. In all cases, a message is added to the chatter indicating the action performed:

  1. A payment complement exists, with an origin invoice: The related payment will be displayed.

    l10n_mx_edi_document/static/src/img/existing_payment.png
  2. An origin invoice exists for the payment, but the complement has not been created: The payment record is created and linked to the corresponding invoice.

    l10n_mx_edi_document/static/src/img/new_payment.png
  3. Create a payment record without a related invoice: A payment can be created and left available to be associated with an invoice.

    l10n_mx_edi_document/static/src/img/available_payment.png
  4. Prevent the creation of new payments without related invoices: The CFDI complement is attached to an existing payment.

To disable the creation of new payments, the system parameter mexico_document_avoid_create_payment must be set with True in the value field. If no matching payment is found, the file will be moved to the Without records folder.

l10n_mx_edi_document/static/src/img/mexico_document_avoid_create_payment.png l10n_mx_edi_document/static/src/img/not_payment.png

Search criteria to prevent payment duplication

  1. Fiscal folio: It is verified whether the folio matches that of any payment previously created in the system.
  2. It is verified whether the payment characteristics match an existing one (even if there is no match by fiscal folio).

Credits

Contributors

  • Luis Torres <luis_t@vauxoo.com> (Planner/Auditor)
  • José Robles <josemanuel@vauxoo.com> (Developer)

Maintainer

Vauxoo
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

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with