OdooWiki OCA HUB

Sale Stock Last Date

sale_stock_last_date folder_open OCA/sale-workflow open_in_new
Sales License: AGPL-3

This module adds the field last delivery date in sale order lines. Also you can filter and group by this field in sale report.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Shows the date of the last completed outgoing delivery on each sale order line, and lets you filter and group sales analysis by that date.

This module adds a "Last delivery date" to every sale order line. It is filled in automatically from the stock moves linked to the line: only outgoing moves that are done and not scrapped are considered, and the most recent one wins. The value is stored, so it stays available for searching and reporting.

Where you see it: - On the sale order form, inside the order lines: the date appears in the line pop-up next to the customer lead time, and as an optional column in the lines list. - In the Sales Analysis report (sale.report), where the date is available as a column and can be used for grouping.

Business rules and behaviours: - The date is computed automatically; users do not type it. - It only reflects deliveries that were actually completed (done outgoing moves), so cancelled, scrapped or incoming moves are ignored. - If several deliveries exist for a line, the latest date is kept.

In the Sales Analysis search panel you get a "Sent yesterday" filter that shows lines delivered between yesterday and today, and a "Last Delivery Date" grouping option that groups results by month.

It touches the sale order line and the sales analysis report, and relies on the sale_stock module for the delivery information.

Depends on

sale_stock
Models and fields (2)
  • sale.report · extends an existing modellast_delivery_date (Last delivery date)
  • sale.order.line · extends an existing modellast_delivery_date (Last delivery date)

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

Sources · Odoo 12.0

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

terminal Installation and usage

OCA documentation · Odoo 18.0

To use this module, you need to:

  • Create a sale order and confirm it.
  • Go to related picking and validate it.
  • Go back to sale order, you will see the picking date in related sale order line.

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.