OdooWiki OCA HUB

Supplier Calendar

supplier_calendar folder_open OCA/purchase-workflow open_in_new
Purchase Management License: LGPL-3

This module adds a Calendar to the ResPartner model. This calendar can then used as the basis of the proper computation of start/end dates based on the delivery lead time of the supplier in this and other modules.

In this module, the calendar is considered in the computation of the schedules date of a stock picking and in the order date of a purchase order.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Lets you attach a working-time calendar to a supplier so purchase lead times are counted in that supplier's working days instead of plain calendar days, and uses it to compute planned dates on purchase orders and stock pickings.

This module adds supplier working calendars to Odoo so that delivery lead times are calculated on the days the supplier actually works.

On a supplier's contact record (Sales & Purchases tab) you get two new fields: a "Delay Calendar Type" choice between "Natural days" and "Supplier Calendar", and a "Factory Calendar" field that only appears when you pick "Supplier Calendar". Choosing "Natural days" automatically clears the calendar.

On the supplier information lines of a product (the vendor pricelist tab, form and list views) the same calendar type is shown next to the lead time, so you can see at a glance how each vendor's delay is counted.

When a purchase order line computes its planned date, if the vendor has a factory calendar the delay is counted in that calendar's working days (including public holidays), starting from the order date or from today if there is no order date. Similarly, when a stock rule creates a purchase order, the order date is back-calculated from the planned procurement date using the supplier's working calendar, so the order is placed on a working day.

Models touched: res.partner, product.supplierinfo, purchase.order.line and stock.rule.

Depends on

purchase_stockresource
Models and fields (4)
  • stock.rule · extends an existing model
  • res.partner · extends an existing modeldelay_calendar_type, factory_calendar_id
  • purchase.order.line · extends an existing model
  • product.supplierinfo · extends an existing modeldelay_calendar_type

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: 8 confirmed, 1 with no information of 9 versions.

Sources · Odoo 18.0

Confirmed on 2026-11-03 in branch 18.0 of OCA/purchase-workflow.

terminal Installation and usage

OCA documentation · Odoo 19.0
  • Go to Settings and activate the developer mode.
  • Go to Settings \> Technical \> Resource \> Working Schedules and define your resource calendar.
  • Go to Contacts \> Sales&Purchases \> Purchase \> Delay Calendar Type and assign Supplier Calendar and in Factory Calendar assign the Resource Calendar desired.

When a picking is created from a purchase order of a supplier, the lead time used to calculate the scheduled date is computed in natural days. At the same time, when a purchase order is created due to a a procurement evaluation, its order date is also computed considering the lead time in natural days. THis module adds the possibility of expressing the lead time of a vendor in his own calendar. This way, the order dates of purchase orders and the scheduled dates of receipts will only take into account the supplier working days.

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.