OdooWiki OCA HUB

Sale order safe commitment date

sale_order_safe_commitment_date folder_open OCA/sale-workflow open_in_new
Sales Management License: LGPL-3

This module allows to avoid that the salesmen set a delivery date before the minimum expected date.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

This module prevents salespeople from promising a delivery date earlier than the date Odoo expects the products to be ready. It adds a warning on the sales order and automatically adjusts the promised date when the order is confirmed.

When you work on a sales order, you can set a promised delivery date using a new field called Delivery date. This field is shown on the sales order form and is only editable while the order is in draft or sent status.

If the date you enter is earlier than the date Odoo calculates based on product lead times, a warning message appears at the top of the order. The message explains that the requested delivery is not possible and that Odoo will adjust the date automatically.

When you confirm the order, if the promised date is still earlier than the expected date, Odoo automatically changes the promised date to the expected date. This ensures that the delivery order is scheduled realistically and that you do not commit to a date you cannot meet.

The module also stores a flag on each sales order to indicate whether the promised date is unsafe. This flag is used to display the warning and to trigger the automatic adjustment on confirmation.

The new field and warning are added to the standard sales order form. The module works with the sale.order model and does not create any new menus or reports.

Depends on

sale
Models and fields (1)
  • sale.order · extends an existing modeldate_for_commitment (Delivery date), is_commitment_date_unsafe

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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation 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/sale-workflow.

terminal Installation and usage

OCA documentation · Odoo 16.0

If you want to view the delivery date in the top of the sale order form, you should unarchive the view_order_form_commitment_date_ux view, which is archived by default.

To test the module:

  • Go to Sales > Orders and create a new quotation.
  • Set whatever customer and order lines.
  • Go to the Other info tab, section Delivery and set a Delivery date previous to the expected date.
  • A popup will raise warning about setting a delivery before the minimum date possible to promise the delivery.
  • Additionally, a warning alert will be shown on the top side of the order advising the salesman to fix that issue.
  • If the salesman ignores it, the delivery date will be set to the minimum expected date when the order gets confirmed.

No verified information in OCA: Installation.

info

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.