OdooWiki OCA HUB

Lead Time Range - Sale

sale_lead_time_range folder_open OCA/sale-workflow open_in_new
Sales License: AGPL-3

This module allows you to modify the time unit assigned to the customer lead and sale delay fields, choosing between days, weeks, months, or years.

auto_awesome What this module does

AI-generated from the code · Odoo 15.0

This module lets you set customer lead times on products and sales order lines using days, weeks, months, or years instead of only days. Odoo automatically converts your chosen unit into the standard number of days used for delivery scheduling.

When you install this module, the standard 'Customer Lead Time' field on products and the 'Lead Time' field on sales order lines are replaced by two fields: a numeric value and a unit selector (Days, Weeks, Months, Years). You can enter a lead time such as '2 months' or '3 weeks', and Odoo converts it into the equivalent number of days behind the scenes.

On a product form, the new fields appear in the sales section, but only when the product is marked as sellable. The original lead time field is hidden. When you add a product to a sales order, the lead time value and unit are copied from the product to the order line. You can still adjust them directly on the order line.

The conversion works as follows: days are used as-is, weeks are multiplied by 7, months are calculated using the actual calendar (so the number of days varies), and years are also calculated using the actual calendar. This ensures accurate delivery dates.

When the module is installed, existing lead time values on products and sales order lines are copied into the new numeric fields, so no data is lost. The module depends on the Sales and Inventory integration, and it affects the product template and sales order line models.

Depends on

sale_stock
Models and fields (2)
  • sale.order.line · extends an existing modelcustomer_lead_range_type (LT Range), customer_lead_range_value (Lead Time)
  • product.template · extends an existing modelsale_delay_range_type (Range type), sale_delay_range_value (Customer Lead Time)

Text generated by AI (DeepSeek) from reading the Odoo 15.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 15.0

Confirmed on 2026-11-03 in branch 15.0 of OCA/sale-workflow.

terminal Installation and usage

OCA documentation · Odoo 15.0
  • Open a product and access to the inventory tab.
  • Modify the Customer Lead Time and assign the time unit.

No verified information in OCA: Installation, Configuration.

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.