VERI*FACTU - Operation Date
Este módulo extiende la funcionalidad de VERI*FACTU para manejar correctamente las fechas de operación (FechaOperacion) en facturas de cliente y rectificativas.
Características
- Incluye la fecha de operación (FechaOperacion) en el XML de VERI*FACTU cuando la fecha contable difiere de la fecha de factura.
- Valida que la fecha de operación no pueda ser posterior a la fecha de factura.
Detalles Técnicos
El módulo extiende el modelo account.move para:
- Sobrescribir _get_verifactu_invoice_dict_out() para incluir el campo FechaOperacion cuando la fecha contable (date) difiere de la fecha de factura (invoice_date).
- Sobrescribir _check_verifactu_configuration() para añadir validación que impide que la fecha de operación sea posterior a la fecha de factura.
El campo de fecha de operación solo se incluye cuando:
- Tanto date como invoice_date están informados
- Son fechas diferentes
- La factura es de cliente o rectificativa (out_invoice, out_refund)
Caso de Uso
En algunos escenarios empresariales, la fecha en que ocurrió la operación puede diferir de la fecha de factura. Por ejemplo, servicios prestados en un periodo pero facturados en otro. Este módulo asegura que estos casos se reporten correctamente a la agencia tributaria a través de VERI*FACTU.
auto_awesome What this module does
AI-generated from the code · Odoo 16.0Adds the operation date to Spanish VERI*FACTU e-invoice XML for customer invoices and credit notes when the accounting date differs from the invoice date, and blocks operation dates later than the invoice date.
This module refines the Spanish VERI*FACTU e-invoicing setup for customer invoices and credit notes.
- On customer invoices and credit notes, an "Operation date" field is shown on the VERI*FACTU form, next to the invoice date. It is only visible when VERI*FACTU is enabled and the document is a customer invoice or credit note. The help text tells users to fill it when the operation date is earlier than the invoice date.
- When the accounting date differs from the invoice date, that operation date is sent in the VERI*FACTU XML under FechaOperacion, so the tax authority receives the correct operation date.
- A validation rule prevents saving or sending an invoice whose operation date is later than the invoice date, showing the message "The operation date cannot be greater than the invoice date."
The module extends the account.move model and the existing VERI*FACTU invoice form view. It does not add new menus or reports; it only adjusts the invoice form and the data sent to VERI*FACTU.
Depends on
Models and fields (1)
- account.move · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 16.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 16.0
Confirmed on 2026-11-03 in branch 16.0 of OCA/l10n-spain.
terminal Installation and usage
OCA documentation · Odoo 16.0Configuration
Source · Odoo 16.0Este módulo no requiere ninguna configuración específica.
El manejo de la fecha de operación es automático:
- Al crear o editar una factura de cliente o rectificativa, si establece el campo Fecha Contable con una fecha diferente a la Fecha de Factura, el módulo incluirá automáticamente esta fecha como FechaOperacion en VERI*FACTU.
- El sistema impedirá que establezca una fecha de operación posterior a la fecha de factura.
Usage
Source · Odoo 16.0Para usar este módulo:
- Cree una factura de cliente o rectificativa.
- Si la operación ocurrió en una fecha diferente a la fecha de factura, cambie la Fecha Contable a la fecha real de la operación.
- Asegúrese de que la fecha contable no sea posterior a la fecha de factura.
- Cuando la factura se envíe a VERI*FACTU, la fecha de operación se incluirá automáticamente en el campo FechaOperacion.
No verified information in OCA: Installation.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.