OdooWiki OCA HUB

Stock production lot expired date

stock_production_lot_expired_date folder_open OCA/product-attribute open_in_new
Product License: AGPL-3

This module allows to facilitate the input of stock production lot expired dates:

  • Add settings on stock to choose the base date for stock production lot
  • Add onchanges on stock production lot to compute expired dates from base date

auto_awesome What this module does

AI-generated from the code · Odoo 17.0

Lets you choose which date (use, expiration, alert or removal) is the reference for a lot, and automatically fills the other dates when you edit that reference date on a lot.

This module makes it faster to enter the dates of a stock lot (serial/lot number) when you track expiry.

In Inventory settings, next to the expiry feature, a new option "Base date to compute expiration dates" lets you pick which date is your starting point: Use date, Expiration date, Alert date or Removal date. The choice is saved as a system setting.

On a lot form, when you change the date you selected as base date, Odoo automatically recalculates the other dates. The calculation uses the time intervals configured on the product (expiration, use, removal and alert times), so the other dates are shifted by the same differences as the product's intervals. For example, if the product says the alert must come some days before expiry, changing the expiration date moves the alert date accordingly.

  • The recalculation only happens while editing the form (on change), not on saved records in the background.
  • It only applies when the lot has a product and the edited date is the configured base date.
  • Dates whose interval is not set on the product are left untouched.

It touches the lot model stock.lot and the Inventory settings screen res.config.settings.

Depends on

product_expirystock
Models and fields (2)
  • stock.lot · extends an existing model
  • res.config.settings · extends an existing modelproduction_lot_base_date (Base date to compute expiration dates)

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/product-attribute.

terminal Installation and usage

OCA documentation · Odoo 17.0

Go to Settings \> Inventory \> Traceability There you can set the base date under Base date to compute expiration dates

No verified information in OCA: Installation, Configuration.

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.