OdooWiki OCA HUB

Sale Start End Dates

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

This module adds the fields Start Date and End Date on sale order lines (requied fields when the product has the Must Have Start and End Dates property). You can also define a Default Start Date and Default End Date on the sale order; when set, these dates will be used by default on new sale order lines. Upon invoice creation, the values of the start/end dates of the sale order line are copied to the start/end dates of invoice lines.

This module is a technical module: it is designed to be used with other modules such as the sale_rental module.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Adds Start Date, End Date and Number of Days on sale order lines, with default dates on the sale order. These dates are required for products flagged as needing dates and are copied to invoice lines.

This module lets you record a service or rental period on each sale order line. On the sale order form you get two new fields, Default Start Date and Default End Date, placed after the payment terms. When you add a line for a product that is flagged as needing dates, the line shows Start Date, End Date and Number of Days; these fields are hidden for other products.

Business rules added by the module: - If a product needs dates, the line cannot be saved without a start date and an end date, and the start date must not be after the end date. - The default start/end dates of the order are used automatically on new lines when the product needs dates. - Number of Days is calculated from the two dates (end minus start, plus one). If you type a number of days, the end date is recalculated from the start date (or the start date from the end date). A negative number of days is refused and forced to 1 with a warning. - On the order itself, the default start date must not be after the default end date.

When an invoice is created from the sale order, the start and end dates of the line are copied to the invoice line. The dates and number of days are also available as optional columns in the Sales Analysis report (sale.report).

Required by other modules

Models and fields (3)
  • sale.order · extends an existing modeldefault_end_date, default_start_date
  • sale.report · extends an existing modelend_date, start_date, number_of_days
  • sale.order.line · extends an existing modelend_date, start_date, number_of_days (Number of Days), must_have_dates

Text generated by AI (DeepSeek) from reading the Odoo 19.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: 7 confirmed, 2 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

No verified information

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.

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.