Repository
OCA/l10n-mexico · module folder
Module version
1.0.0
Category
Accounting/Localizations
Folder size
0.09 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/l10n-mexico
Last tracking update
2026-07-11 08:23:39
Authors
Odoo Community Association (OCA), Gray Matter Logic
Maintainers
Odoo Community Association (OCA), Gray Matter Logic
Committers
Maxime Chambreuil, OCA-git-bot, oca-ci
Odoo dependencies
OCA/account-financial-tools:
OCA/mis-builder:
OCA/reporting-engine:
OCA/server-ux:
odoo/odoo:
- web
- bus
- uom
Python dependencies
xlrd, xlsxwriter
System dependencies
None
Required by
None
Description
This module provides financial and tax reports for the Mexican localization:

- Balance Sheet (*Balance General*).
- Profit and Loss (*Estado de Resultados*).
- Trial Balance (*Balanza de Comprobación*).
- Aged Accounts Receivable (*Cuentas por Cobrar Vencidas*).
- Aged Accounts Payable (*Cuentas por Pagar Vencidas*).
- DIOT (*Declaración Informativa de Operaciones con Terceros*).

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
report_financial report_financial ir.ui.view qweb New
view_l10n_mx_financial_report_wizard_form l10n_mx.financial.report.wizard.form l10n_mx.financial.report.wizard form New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (0)

No new fields.

Public methods (9)
  • get_aged_payable(self, company, date_to)
  • get_aged_receivable(self, company, date_to)
  • get_balance_sheet(self, company, date_from, date_to)
  • get_diot_lines(self, company, date_from, date_to)
  • get_profit_and_loss(self, company, date_from, date_to)
  • get_report_lines(self, report_type, company, date_from, date_to)
  • get_report_title(self, report_type)
  • get_trial_balance(self, company, date_from, date_to)
  • render_diot_txt(self, lines)

New fields (4)
  • company_id Many2one → res.company
    comodel_name='res.company' default=<expr> required=True
  • date_from Date
    required=True
  • date_to Date
    required=True
  • report_type Selection
    required=True selection=[('balance_sheet', 'Balance Sheet'), ('profit_loss', 'Profit and Loss'), ('trial_balance', 'Trial Balance'), ('aged_receivable', 'Aged Accounts Receivable'), ('aged_payable', 'Aged Accounts Payable'), ('diot', 'DIOT')]
Public methods (4)
  • action_export_diot_txt(self)
  • action_open_wizard(self, report_type)
    @api.model
  • action_print_pdf(self)
  • default_get(self, fields_list)
    @api.model

New fields (0)

No new fields.

Public methods (0)

No public methods.