Automatically cancel sales quotations past their validity date
Description
A daily scheduled action cancels draft quotations whose validity date is already in the past, so stale cotizaciones leave the pipeline without a manual cancel.
Author
Cloudia
Copyright
Copyright (c) 2025-Present Cloudia Systems S.A.C.
License
OPL-1
Version
18.0.1.0
Dependencies
sale_management
1. Configuration
Open Ajustes → Técnico → Automatización → Acciones planificadas (developer mode) and find Ventas: Cancelar Cotizaciones Vencidas.
Keep Activo on. On this staging database the switch was off — turn it on in production.
Leave Ejecutar cada at 1 Días.
Optional: Ejecutar Manualmente to run once now. Code: model._cancel_expired_quotations() on model Orden de venta.
On the cotización, set Vencimiento (validity date).
Leave the document in state Cotización (draft). The cron searches state = draft and validity_date < today.
After the daily run, those records are cancelled. Quotations still valid, and documents already sent or confirmed, are left untouched.
COT000941. Vencimiento 24/09/2026. While the date is in the future the cron will not cancel it.
Only draft cotizaciones are cancelled. A quotation already in Presupuesto enviado or Cotización confirmada is not selected, even if Vencimiento is past.
Cancelar cotizaciones vencidas
Nombre técnico: cs_sale_quotation_expire
Nombre
Sale Quotation Cancel Expired
Resumen
Cancela automáticamente las cotizaciones de venta cuya fecha de validez ya pasó
Descripción
Una acción planificada diaria cancela las cotizaciones en borrador cuya fecha de validez ya venció, para que no queden cotizaciones viejas en el flujo.