Filtro para Ocultar Facturas en Proceso de Cancelación en reportes contables
by Adrianh De Lucio Chavero https://github.com/adrianhCoder$ 1.01
Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
•
Invoicing (account)
• Accounting (account_accountant) • Discuss (mail) |
Lines of code | 115 |
Technical Name |
filter_canceled |
License | OPL-1 |
Website | https://github.com/adrianhCoder |
Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
•
Invoicing (account)
• Accounting (account_accountant) • Discuss (mail) |
Lines of code | 115 |
Technical Name |
filter_canceled |
License | OPL-1 |
Website | https://github.com/adrianhCoder |
🔍 Filtro para Ocultar Facturas en Proceso de Cancelación
Versión: 17.0.1.0.0 | Autor: Adrianh De Lucio Chavero
📋 Descripción
Este módulo agrega un filtro adicional en los reportes contables de Odoo 17 que permite ocultar automáticamente todas las facturas que están en proceso de cancelación CFDI (estado 'cancel_requested').
✨ Características Principales
🎯 Filtro Automático
Oculta automáticamente facturas con l10n_mx_edi_cfdi_state = 'cancel_requested'
en todos los reportes contables.
⚙️ Configuración Simple
Activa el filtro desde la configuración de cada reporte con una simple casilla de verificación.
🔄 Compatibilidad Total
Funciona con o sin el módulo l10n_mx_edi
instalado. Si no está disponible, el filtro se desactiva automáticamente.
📊 Integración Nativa
Se integra perfectamente con el sistema de filtros existente de Odoo, sin interferir con otros módulos.
🚀 Instalación y Uso
- Instala el módulo desde Odoo Apps Store.
- Activa el Modo Desarrollador: Ajustes > Activar modo desarrollador.
- Abre un reporte contable (ej: Antigüedad de saldos).
- Haz clic en el icono de engrane (configuración del reporte) para abrir el formulario de configuración del reporte.
- En el formulario, entra a la pestaña Opciones y luego a la sección Filtros.
- Desplázate hasta el final y marca la casilla "Ocultar en proceso cancelación".
- Guarda el reporte. A partir de ahora, el filtro estará activo por defecto al abrir el reporte.
🔧 Estados CFDI Soportados
El módulo filtra basándose en el campo l10n_mx_edi_cfdi_state
:
- ✅ sent - Firmado (se muestra)
- ❌ cancel_requested - En proceso de cancelación (se oculta)
- ✅ cancel - Cancelado (se muestra)
- ✅ received - Recibido (se muestra)
- ✅ global_sent - Global firmado (se muestra)
- ✅ global_cancel - Global cancelado (se muestra)
🛡️ Seguridad y Compatibilidad
⚠️ Importante
Este módulo es completamente no invasivo y se puede instalar/desinstalar sin riesgo de corrupción de datos. Solo agrega funcionalidad nueva sin modificar comportamientos existentes.
📞 Soporte
Para soporte técnico, reportar problemas o solicitar mejoras:
- Email: adrianh_coder@outlook.com
- GitHub: https://github.com/adrianhCoder
📄 Licencia
Este módulo está bajo la licencia OPL-1.
Desarrollado con ❤️ por Adrianh De Lucio Chavero
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