Sale Delivery Date

sale_delivery_date
REPOSITORY
REPOSITORYOCA/sale-workflow
GIT
GIThttps://github.com/OCA/sale-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-workflow/tree/14.0/sale_delivery_date
VERSION
VERSION 1.1.0
CATEGORY
CATEGORYSales
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLEYes
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp SA
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp SA
COMMITTERS
COMMITTERSPedro M. Baeza, OCA Transbot, Sébastien Alix, oca-travis, Weblate, OCA-git-bot, Matthieu Méquignon
WEBSITE
WEBSITEhttps://github.com/OCA/sale-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:40:57
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/partner-contact:
    - partner_tz
OCA/server-tools:
    - base_time_window
OCA/stock-logistics-warehouse:
    - stock_warehouse_calendar
OCA/stock-logistics-workflow:
    - stock_partner_delivery_window
odoo/odoo:
    - delivery
    - sale_stock
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - payment
    - account
    - product
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - utm
    - stock_account
    - stock
    - barcodes
    - sale_management
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES openupgradelib
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (5)
XML IDNameModelTypeStatus
report_delivery_document report_delivery_document ir.ui.view qweb Inherits stock.report_delivery_document
report_saleorder_document report_saleorder_document ir.ui.view qweb Inherits sale.report_saleorder_document
view_partner_form_inherit res.partner.form.inherit res.partner xpath Inherits base.view_partner_form
view_picking_cutoff_search stock.picking.cutoff.search stock.picking filter Inherits stock.view_picking_internal_search
view_warehouse_inherit stock.warehouse.inherit stock.warehouse field Inherits stock.view_warehouse
Models touched (6)

New fields (1)
  • order_delivery_cutoff_preference Selection
    default='warehouse_cutoff' help="Define the cutoff time for delivery orders:\n\n* Use global (warehouse) cutoff time: Delivery order for sale orders will be postponed to the next warehouse cutoff time\n* Use partner's cutoff time: Delivery order for sale orders will be postponed to the next partner's cutoff time\n\nExample: If cutoff is set to 09:00, any sale order confirmed before 09:00 will have its delivery order postponed to 09:00, and any sale order confirmed after 09:00 will have its delivery order postponed to 09:00 on the following day." string='Delivery orders cutoff preference' args: [('warehouse_cutoff', 'Use global (warehouse) cutoff time'), ('partner_cutoff', "Use partner's cutoff time")]
Public methods (3)
  • get_next_windows_start_datetime(self, from_datetime, to_datetime)
    Get all delivery windows start time. Range from from_datetime weekday to to_datetime weekday. Note result can include a start datetime that is before from_datetime on the from_datetime weekday :param from_datetime: Datetime object :param to_datetime: Datetime object :return: List of Datetime objects
  • get_next_workdays_datetime(self, from_datetime, to_datetime)
    Returns all the delivery windows in the provided date range. :param from_datetime: Datetime object :param to_datetime: Datetime object :return: List of Datetime objects
  • next_delivery_window_start_datetime(self, from_date=None, timedelta_days=None)
    Get next starting datetime in a preferred delivery window. If from_date is already in a delivery window, from_date is "the next" :param from_date: Datetime object (Leave empty to use now()) :param timedelta_days: Number of days to use in the computation (Leave empty to use 7 days or 1 week) :return: Datetime object

New fields (1)
  • display_expected_date_ok Boolean
    compute='_compute_display_expected_date_ok' string='Display Expected Date Ok'
Public methods (1)
  • get_cutoff_time(self)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (3)
  • cutoff_time_diff Integer
    compute='_compute_cutoff_time_diff' search='_search_cutoff_time_diff' store=False
  • cutoff_time_hms Char
    compute='_compute_cutoff_time_hms' default='00:00' store=True
  • expected_delivery_date Datetime
    compute='_compute_expected_delivery_date'
Public methods (0)

No public methods.

New fields (1)
  • apply_cutoff Boolean
Public methods (0)

No public methods.

New fields (2)
  • cutoff_time Float
  • tz Selection
    string='Timezone' args: _tz_get
Public methods (3)
  • float_to_time(self, value)
    @api.model
  • float_to_time_repr(self, value)
    @api.model
  • get_cutoff_time(self)