=============================
Mexico - Electronic Invoicing
=============================

.. 
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! This file is generated by oca-gen-addon-readme !!
   !! changes will be overwritten.                   !!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! source digest: sha256:a40140cab5997e2e6638b3821fe265400823f846577c5ca78a32a442c013dc86
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
    :target: https://odoo-community.org/page/development-status
    :alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
    :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
    :alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--mexico-lightgray.png?logo=github
    :target: https://github.com/OCA/l10n-mexico/tree/17.0/l10n_mx_cfdi
    :alt: OCA/l10n-mexico
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/l10n-mexico-17-0/l10n-mexico-17-0-l10n_mx_cfdi
    :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
    :target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-mexico&target_branch=17.0
    :alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module provides the configuration used by electronic invoicing and
payroll for Mexico:

- Integration with PAC for the issuance and stamping of documents.
- Management of different series for the issuers.
- Administration of different CFDI issuers for the same company.

**Table of contents**

.. contents::
   :local:

Installation
============

This module works only with the following PAC so you need to create your
account with one of them:

- `Facturama <https://facturama.mx/>`__

Configuration
=============

1. In the invoicing app, go to Customers > Customers

- Create a new customer with its corresponding id number and fiscal name
- In the contact form, go to Sales & purchase tab
- In the Fiscal Information section add the following information:

  - Fiscal regime
  - Default CFDI usage
  - Default payment method
  - Default payment form

2. In the invoicing app, go to Customers > Products

   - Open an existing product or create a new one and enter the general
     information
   - Go to the Accounting tab in the product form
   - Add the product code and the unit of measure corresponding to
     authority regulations

3. Go to Customers > Invoices and create a new record

   - Fill in the previously created customer, the client’s previously
     added fiscal information is essential for the stamping process.
   - Add any product that has its product fiscal code
   - Open the CFDI tab and add the payment method, and payment form
   - Select the Confirm button, the invoice will be stamped with the
     mexican authority
   - Select the Send button to send the invoice to the customer

Known issues / Roadmap
======================

- Support additional PAC

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-mexico/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/l10n-mexico/issues/new?body=module:%20l10n_mx_cfdi%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Alexis López Zubieta <alexis.lopez@augetec.com> (Auge TEC)

Contributors
------------

- Alexis López Zubieta <alexis.lopez@augetec.com>
- Maxime Chambreuil <mchambreuil@opensourceintegrators.com>

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
   :alt: Odoo Community Association
   :target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/l10n-mexico <https://github.com/OCA/l10n-mexico/tree/17.0/l10n_mx_cfdi>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
