Stock availability in SO line for all the warehouses

sale_stock_qty_at_date_widget_multi_warehouse
REPOSITORY
REPOSITORYOCA/sale-workflow
GIT
GIThttps://github.com/OCA/sale-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-workflow/tree/18.0/sale_stock_qty_at_date_widget_multi_warehouse
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYSales
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSOCA-git-bot, oca-ci, Carlos Roca
WEBSITE
WEBSITEhttps://github.com/OCA/sale-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-08 07:59:44
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - sale_stock
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
    - account_payment
    - account
    - onboarding
    - product
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - payment
    - utm
    - stock_account
    - stock
    - barcodes_gs1_nomenclature
    - barcodes
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module makes the availability icon shown next to the quantity on a sales
order line take into account the stock available on **every warehouse**, not
only the warehouse assigned to the sales order line.

The widget icon next to the quantity is colored as follows:

- **Blue/purple** (the original color): there are enough stock on the line's own
  warehouse to fulfill the demand.
- **Yellow**: the line's own warehouse can not fulfill the demand on its own, but
  the demand can be satisfied by gathering the stock of all the warehouses.
- **Red**: there is not enough stock to fulfill the demand even when gathering the
  stock of all the warehouses.

Clicking on the icon opens the availability popover, which now also shows a
breakdown of the available quantity on each warehouse.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_order_form_inherit_qty_multi_warehouse sale.order.line.qty.multi.warehouse sale.order Inherits sale_stock.view_order_form_inherit_sale_stock_qty
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (1)

New fields (1)
  • qty_at_date_per_warehouse Json
    compute='_compute_qty_at_date_per_warehouse' help='Technical field feeding the Qty at Date widget with the forecasted availability of the product on every warehouse at the scheduled date.'
Public methods (0)

No public methods.