Skip to content

Commit

Permalink
[ADD] l10n_mx_cfdi (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
max3903 authored Jul 18, 2024
1 parent 0ee3b1a commit 7625f7f
Show file tree
Hide file tree
Showing 69 changed files with 5,713 additions and 14 deletions.
21 changes: 21 additions & 0 deletions l10n_mx_catalogs/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,29 @@ Catálogos SAT para localización mexicana

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

================
l10n_mx_catalogs
================

This module provides the data from the Mexican tax authority (SAT).

Features
--------

- Necessary fields for electronic invoicing
- Necessary fields for electronic payroll
- Official data from Secretaría de Acción Tributaria (SAT)

System Requirements
-------------------
- Odoo 15.0
- Pre-configuration of fiscal and company data in Odoo.

Installation
------------
1. Log in to Odoo as an administrator and navigate to the applications section.
2. Search for "l10n_mx_catalogs" and click install.

**Table of contents**

.. contents::
Expand Down
21 changes: 21 additions & 0 deletions l10n_mx_catalogs/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -1 +1,22 @@
================
l10n_mx_catalogs
================

This module provides the data from the Mexican tax authority (SAT).

Features
--------

- Necessary fields for electronic invoicing
- Necessary fields for electronic payroll
- Official data from Secretaría de Acción Tributaria (SAT)

System Requirements
-------------------
- Odoo 15.0
- Pre-configuration of fiscal and company data in Odoo.

Installation
------------
1. Log in to Odoo as an administrator and navigate to the applications section.
2. Search for "l10n_mx_catalogs" and click install.
58 changes: 44 additions & 14 deletions l10n_mx_catalogs/static/description/index.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
<title>Catálogos SAT para localización mexicana</title>
<title>README.rst</title>
<style type="text/css">

/*
:Author: David Goodger (goodger@python.org)
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
:Copyright: This stylesheet has been placed in the public domain.
Default cascading style sheet for the HTML output of Docutils.
Despite the name, some widely supported CSS2 features are used.
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
Expand Down Expand Up @@ -275,7 +275,7 @@
margin-left: 2em ;
margin-right: 2em }

pre.code .ln { color: grey; } /* line numbers */
pre.code .ln { color: gray; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
Expand All @@ -301,7 +301,7 @@
span.pre {
white-space: pre }

span.problematic {
span.problematic, pre.problematic {
color: red }

span.section-subtitle {
Expand Down Expand Up @@ -360,17 +360,43 @@
</style>
</head>
<body>
<div class="document" id="catalogos-sat-para-localizacion-mexicana">
<h1 class="title">Catálogos SAT para localización mexicana</h1>
<div class="document">


<div class="section" id="catalogos-sat-para-localizacion-mexicana">
<h1>Catálogos SAT para localización mexicana</h1>
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:5789eb39bb70654b03aee5c7c3d7ac848041fd3db4a732290906ab2a37188077
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/l10n-mexico/tree/15.0/l10n_mx_catalogs"><img alt="OCA/l10n-mexico" src="https://img.shields.io/badge/github-OCA%2Fl10n--mexico-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/l10n-mexico-15-0/l10n-mexico-15-0-l10n_mx_catalogs"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/l10n-mexico&amp;target_branch=15.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
</div>
<div class="section" id="l10n-mx-catalogs">
<h1>l10n_mx_catalogs</h1>
<p>This module provides the data from the Mexican tax authority (SAT).</p>
<div class="section" id="features">
<h2>Features</h2>
<ul class="simple">
<li>Necessary fields for electronic invoicing</li>
<li>Necessary fields for electronic payroll</li>
<li>Official data from Secretaría de Acción Tributaria (SAT)</li>
</ul>
</div>
<div class="section" id="system-requirements">
<h2>System Requirements</h2>
<ul class="simple">
<li>Odoo 15.0</li>
<li>Pre-configuration of fiscal and company data in Odoo.</li>
</ul>
</div>
<div class="section" id="installation">
<h2>Installation</h2>
<ol class="arabic simple">
<li>Log in to Odoo as an administrator and navigate to the applications section.</li>
<li>Search for “l10n_mx_catalogs” and click install.</li>
</ol>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand All @@ -385,37 +411,39 @@ <h1 class="title">Catálogos SAT para localización mexicana</h1>
</ul>
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
<h3><a class="toc-backref" href="#toc-entry-1">Usage</a></h3>
<p>This module does not provide any feature per se. It only allows to load data
for electronic invoicing (l10n_mx_cfdi) and electronic payroll (l10n_mx_hr_payroll).</p>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
<h3><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h3>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/l10n-mexico/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/l10n-mexico/issues/new?body=module:%20l10n_mx_catalogs%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
<h1><a class="toc-backref" href="#toc-entry-3">Credits</a></h1>
<h3><a class="toc-backref" href="#toc-entry-3">Credits</a></h3>
<div class="section" id="authors">
<h2><a class="toc-backref" href="#toc-entry-4">Authors</a></h2>
<h4><a class="toc-backref" href="#toc-entry-4">Authors</a></h4>
<ul class="simple">
<li>Alexis López Zubieta &lt;<a class="reference external" href="mailto:alexis.lopez&#64;augetec.com">alexis.lopez&#64;augetec.com</a>&gt; (Auge TEC)</li>
</ul>
</div>
<div class="section" id="contributors">
<h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
<h4><a class="toc-backref" href="#toc-entry-5">Contributors</a></h4>
<ul class="simple">
<li>Alexis López Zubieta &lt;<a class="reference external" href="mailto:alexis.lopez&#64;augetec.com">alexis.lopez&#64;augetec.com</a>&gt;</li>
<li>Maxime Chambreuil &lt;<a class="reference external" href="mailto:mchambreuil&#64;opensourceintegrators.com">mchambreuil&#64;opensourceintegrators.com</a>&gt;</li>
</ul>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
<h4><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h4>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<a class="reference external image-reference" href="https://odoo-community.org">
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
</a>
<p>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.</p>
Expand All @@ -424,5 +452,7 @@ <h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
106 changes: 106 additions & 0 deletions l10n_mx_cfdi/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
=============================
Mexico - Electronic Invoicing
=============================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! 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|

============
l10n_mx_cfdi
============

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

Features
--------
- Generation of electronic invoices compliant with the CFDI 4.0 standard.
- Integration with Facturama (for now) as the PAC for the issuance and stamping of invoices.
- Customization of fiscal documents according to user needs.
- Centralized management of electronic invoices within Odoo.
- Tracking and recording of issued and received fiscal documents.

System Requirements
-------------------
- Odoo 15.0
- Active account in Facturama
- Pre-configuration of fiscal and company data in Odoo.

Installation
------------
1. Log in to Odoo as an administrator and navigate to the applications section.
2. Search for "l10n_mx_cfdi" and click install.
3. Configure module settings by entering access credentials for Facturama and other required details.

**Table of contents**

.. contents::
:local:


Usage
-----


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
~~~~~~~~~~~~

* 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/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
41 changes: 41 additions & 0 deletions l10n_mx_cfdi/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"name": "Mexico - Electronic Invoicing",
"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": ["facturama"],
},
"data": [
"security/ir.model.access.csv",
"security/l10n_mx_cfdi_security.xml",
"data/cfdi_publico_en_general.xml",
"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>
15 changes: 15 additions & 0 deletions l10n_mx_cfdi/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from . import (
cfdi_series,
cfdi_service,
cfdi_service_topup,
cfdi_issuer,
cfdi_document,
res_company,
res_config_settings,
res_partner,
product_template,
account_move,
account_move_line,
account_tax,
account_payment,
)
Loading

0 comments on commit 7625f7f

Please sign in to comment.