Sale order safe commitment date
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.0This 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
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-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/sale-workflow.
terminal Installation and usage
OCA documentation · Odoo 16.0Configuration
Source · Odoo 16.0If 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.
Usage
Source · Odoo 16.0To 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.
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.