| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• Invoicing (account) |
| Lines of code | 1644 |
| Technical Name |
l10n_es_creayrece_status |
| License | OPL-1 |
| Website | https://gencbaris.com/odoo_plugins/ |
| Versions | 18.0 19.0 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• Invoicing (account) |
| Lines of code | 1644 |
| Technical Name |
l10n_es_creayrece_status |
| License | OPL-1 |
| Website | https://gencbaris.com/odoo_plugins/ |
| Versions | 18.0 19.0 |
Crea y Crece — Informe del estado de facturas en Espana
Comunica los estados de aceptacion comercial, rechazo y pago a la solucion publica (SPFE) en UBL — listo para el RD 238/2026
La Ley Crea y Crece de Espana y su Real Decreto 238/2026 de desarrollo (publicado en el BOE el 31 de marzo de 2026) introducen la facturacion electronica B2B obligatoria. Una obligacion central es que el destinatario de una factura electronica debe informar al emisor y a la solucion publica (Solucion Publica de Facturacion Electronica, SPFE) del estado de la factura. Este modulo construye esas notificaciones de estado en la sintaxis de referencia (UBL) y las transmite con tus propias credenciales.
Estados obligatorios y voluntarios
Obligatorios
- Aceptacion comercial de la factura y su fecha.
- Rechazo comercial de la factura y su fecha.
- Pago efectivo completo de la factura y su fecha.
Voluntarios
- Aceptacion parcial.
- Rechazo parcial.
- Pago parcial.
- Cesion de la factura a un tercero.
Que hace este modulo
Generador de UBL ApplicationResponse
Genera la notificacion de estado como un ApplicationResponse
UBL 2.1 — la sintaxis de referencia de la solucion publica —
mapeando cada estado a su ResponseCode de UBL y
trasladando la fecha del estado, el importe pagado y el motivo del
rechazo.
Motor de plazo de cuatro dias habiles
Calcula la ventana de comunicacion del RD 238/2026 de cuatro dias naturales, excluyendo sabados, domingos y festivos nacionales, marca los informes fuera de plazo y muestra los dias habiles restantes. Los festivos nacionales vienen incorporados y son ampliables por compania.
Calculadora de plazo de pago (Ley 3/2004)
Deriva la fecha legal de vencimiento del pago — por defecto 30 dias naturales, limitada al maximo legal de 60 — a partir de la fecha de operacion, recurriendo a la fecha de emision exactamente como prevee la ley.
Validacion real de NIF / NIE / CIF
Algoritmos completos de digito de control de la AEAT: tabla de
letras DNI mod 23, mapeo de prefijos NIE y el caracter de
control par/impar del CIF — en los contactos y en cada
notificacion.
Validacion de reglas de negocio
Bloquea las notificaciones no conformes: falta de fecha de estado, un pago completo que no salda el total, un pago parcial igual o superior al total, un rechazo sin motivo, o partes invalidas.
Transporte BYOK
Transmite el estado UBL a la pasarela SPFE o a una plataforma privada acreditada usando tu propio certificado electronico (TLS mutuo) o token OAuth2. Los puntos finales son valores por defecto editables y cada llamada queda registrada.
Mapeo de estados a codigos de respuesta UBL
| Estado Crea y Crece | UBL ResponseCode | Obligacion |
|---|---|---|
| Aceptacion comercial | AP | Obligatorio |
| Rechazo comercial | RE | Obligatorio |
| Pago completo | PD | Obligatorio |
| Aceptacion parcial | CA | Voluntario |
| Rechazo parcial | UQ | Voluntario |
| Pago parcial | IP | Voluntario |
| Cesion a un tercero | AB | Voluntario |
Integrado en tu flujo contable
- Botones de Aceptar / Rechazar / Comunicar pago en cada factura contabilizada.
- Un asistente guiado para comunicar cualquier estado con los campos correctos.
- Una notificacion automatica de pago completo cuando una factura seguida se concilia.
- Un cron que transmite los estados pendientes por lotes.
- Una lista dedicada de Notificaciones de estado, con codigo de color para informes tardios y aceptados.
Cumplimiento y proteccion de datos
Autoridad: solucion publica de la AEAT espanola (SPFE) bajo el RD 238/2026. Este modulo no es una plataforma certificada: construye la carga util del estado y la transmite unicamente al punto final que configures, usando tus propias credenciales y certificado electronico (bring-your-own-key). Esas credenciales se almacenan unicamente en tu base de datos y nunca se envian a otro lugar.
English version
Crea y Crece — Spain Invoice Status Reporting
Spain's Ley Crea y Crece and its Royal Decree 238/2026 (BOE, 31 March 2026) make B2B e-invoicing mandatory. The recipient must inform the issuer and the public solution (SPFE) of each invoice's status. This module builds those status notifications as UBL 2.1 ApplicationResponse documents and transmits them with your own credentials.
- Mandatory: commercial acceptance, commercial rejection, full payment.
- Voluntary: partial acceptance/rejection/payment and assignment to a third party.
- Four-working-day deadline engine excluding Saturdays, Sundays and national holidays.
- Ley 3/2004 payment-term calculator (30 days default, 60 legal max).
- Real NIF / NIE / CIF control-digit validation (AEAT algorithms).
- Business-rule validation blocking non-compliant notifications.
- BYOK transport to the SPFE gateway or an accredited platform via your own certificate (mTLS) or OAuth2.
- Accept/Reject/Report-payment buttons, guided wizard, auto full-payment notification, batch cron.
Authority: AEAT public solution (SPFE) under RD 238/2026. Not a certified platform: it builds the status payload and transmits it only to the endpoint you configure, using your own credentials and certificate (bring-your-own-key), stored solely in your database.
Screenshots
Connections
Status Notifications
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