Skip to content

Commit

Permalink
[FIX] l10n_mx_cfdi
Browse files Browse the repository at this point in the history
  • Loading branch information
max3903 committed May 7, 2024
1 parent 0ee3b1a commit 8d1667a
Show file tree
Hide file tree
Showing 46 changed files with 4,709 additions and 0 deletions.
84 changes: 84 additions & 0 deletions l10n_mx_cfdi/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
=========================
CFDI Mexico - Facturación
=========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:41a2fefd24df10a8a68742d65502368dc832b77b6e3fd7d74ab4f81348cc6464
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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/15.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-15-0/l10n-mexico-15-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=15.0
:alt: Try me on Runboat

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

This module provides electronic invoicing for Mexico (CFDI 4.0) using Facturama
as the only PAC (for now).

**Table of contents**

.. contents::
:local:

Usage
=====

This module provides electronic invoicing for Mexico (CFDI 4.0) using Facturama
as the only PAC (for now).

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:%2015.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
~~~~~~~~~~~~

This module provides electronic invoicing for Mexico (CFDI 4.0) using Facturama
as the only PAC (for now).

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/15.0/l10n_mx_cfdi>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions l10n_mx_cfdi/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import wizards
45 changes: 45 additions & 0 deletions l10n_mx_cfdi/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"name": "CFDI Mexico - Facturación",
"icon": "/l10n_mx/static/description/icon.png",
"summary": "Allow generating CFDI (Comprobante Fiscal Digital por Internet) for Mexico.",
"author": "Alexis López Zubieta <alexis.lopez@augetec.com> (Auge TEC), "
"Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-mexico",
"license": "LGPL-3",
"category": "Accounting",
"version": "15.0.1.0.0",
"depends": ["account", "l10n_mx", "l10n_mx_catalogs"],
"external_dependencies": {
"python": [
"https://github.com/Facturama/facturama-python-sdk.git@master#egg=facturama"
],
},
"data": [
"security/ir.model.access.csv",
"security/l10n_mx_cfdi_security.xml",
# references l10n_mx_cfdi.regimen_fiscal therefore must be loaded after it
"data/cfdi_publico_en_general.xml",
# references l10n_mx_cfdi.regimen_fiscal therefore must be loaded after it
"data/paper_format.xml",
"views/account_move.xml",
"views/res_partner.xml",
"views/product_template.xml",
"views/account_payment_register.xml",
"views/account_payment.xml",
"views/res_config_settings.xml",
"views/cfdi_menu.xml",
"views/cfdi_series.xml",
"views/cfdi_issuer.xml",
"views/cfdi_service.xml",
"views/cfdi_document.xml",
"views/cfdi_documents_issued.xml",
"wizards/document_cancel_form.xml",
"wizards/create_cfdi_publico_en_general.xml",
"wizards/account_invoice_send_views.xml",
"wizards/download_cfdi_files_wizard.xml",
"reports/report_cfdi_blocks.xml",
"reports/report_external_layouts.xml",
"reports/report_invoice.xml",
"reports/report_payment.xml",
],
}
17 changes: 17 additions & 0 deletions l10n_mx_cfdi/data/cfdi_publico_en_general.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<odoo>

<record id="l10n_mx_cfdi_res_partner_publico_en_general" model="res.partner">
<field name="name">PUBLICO EN GENERAL</field>
<field name="zip" eval="None" />
<field name="vat">XAXX010101000</field>
<field name="country_id" eval="ref('base.mx')" />
<field name="tax_regime" eval="ref('l10n_mx_catalogs.c_regimen_fiscal_616')" />
<field name="company_id" eval="None" />
<field name="cfdi_use_id" eval="ref('l10n_mx_catalogs.c_uso_cfdi_S01')" />
<field
name="payment_method_id"
eval="ref('l10n_mx_catalogs.c_metodo_pago_PUE')"
/>
</record>

</odoo>
8 changes: 8 additions & 0 deletions l10n_mx_cfdi/data/paper_format.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<odoo>

<record id="base.paperformat_euro" model="report.paperformat">
<field name="margin_top">60</field>
<field name="header_spacing">55</field>
</record>

</odoo>
Loading

0 comments on commit 8d1667a

Please sign in to comment.