OdooWiki OCA HUB

Sale Exception Public Holidays

sale_exception_holidays_public folder_open OCA/sale-workflow open_in_new
Generic Modules/Sale License: AGPL-3

This module raises a sale exception if there is a commitment_date on the SO and this date is a public holidays for the shipping partner address.

auto_awesome What this module does

AI-generated from the code · Odoo 17.0

Adds an optional sales exception that warns or blocks a sales order when its delivery/commitment date falls on a public holiday for the shipping address.

This module plugs into the sales exception framework and the public holidays data to check delivery dates on sales orders.

When a sales order has a commitment date (the promised delivery date), the module looks at the shipping address of the order and checks whether that date is a public holiday for that address's country and state. If it is, the order can be flagged with the exception "Delivery Date is a public holiday".

  • The exception rule is created but is inactive by default, so nothing changes until someone enables it in the exception rules settings.
  • Once enabled, the check runs automatically whenever the commitment date is set or changed on a sales order.
  • The check uses the shipping partner's country and state to find matching public holiday lines; holidays defined without a specific state also count.
  • The rule is attached to the sale.order model, so it appears in the standard sales exception workflow (for example, blocking confirmation or showing a warning, depending on how the exception rule is configured).

No new menus or screens are added; the feature is managed through the existing exception rules configuration and the sales order form.

Models and fields (1)
  • sale.order · extends an existing model

Text generated by AI (DeepSeek) from reading the Odoo 17.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: 2 confirmed, 7 with no information of 9 versions.

Sources · Odoo 17.0

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

terminal Installation and usage

OCA documentation · Odoo 17.0
  • Go to Settings \> Technical \> Exception Rules.
  • Activate the rule Delivery Date is a public holiday.
  • Go to Sales \> Orders \> Quotations
  • Create a new quotation.
  • Set Delivery Date on a public holiday.
  • Confirm the order.
  • An exception will be displayed.

No verified information in OCA: Installation.

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.