Repository
OCA/sale-workflow · module folder · Try on Runboat
Module version
1.0.0
Category
Sales
Folder size
0.14 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/sale-workflow
Last tracking update
2026-08-07 08:42:48
Authors
Akretion, Odoo Community Association (OCA), Sodexis
Maintainers
Akretion, Odoo Community Association (OCA), Sodexis
Committers
Alexis de Lattre, Florian da Costa, Weblate, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
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.

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
sale_order_line_view_form_readonly sale.order.line form Inherits sale.sale_order_line_view_form_readonly
sale_report_view_tree sale.report tree Inherits sale.sale_report_view_tree
view_order_form start.end.dates.view_order_form sale.order form Inherits sale.view_order_form
view_order_line_tree sale.order.line tree Inherits sale.view_order_line_tree
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (2)
  • default_end_date Date
    compute='_compute_default_end_date' readonly=False store=True
  • default_start_date Date
    compute='_compute_default_start_date' readonly=False store=True
Public methods (0)

No public methods.

New fields (4)
  • end_date Date
    compute='_compute_end_date' readonly=False store=True
  • must_have_dates Boolean
    related='product_id.must_have_dates'
  • number_of_days Integer
    compute='_compute_number_of_days' inverse='_inverse_number_of_days' readonly=False store=True string='Number of Days'
  • start_date Date
    compute='_compute_start_date' readonly=False store=True
Public methods (0)

No public methods.

New fields (3)
  • end_date Date
    readonly=True
  • number_of_days Integer
    readonly=True
  • start_date Date
    readonly=True
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…