OdooWiki OCA HUB

sale stock partner wharehouse

sale_stock_partner_warehouse folder_open OCA/sale-workflow open_in_new
Warehouse Management License: AGPL-3

Allow to choose by default a warehouse on SO based on a Partner parameter.

If the warehouse parameter is completed, then this value would be the default one on the sale. If empty, then the warehouse on sale would be the standard default warehouse.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Lets you set a preferred warehouse on a customer or contact, and automatically proposes that warehouse on new draft sales orders for that customer.

This module adds a "Sale Warehouse" field to customer and contact records, visible in the Sales section of the partner form. You can pick a warehouse there for each customer or delivery address.

A new setting appears in the Sales settings: "Prioritize Shipping Partner in Sale Warehouse Proposal". When enabled, a draft sales order first looks at the delivery address's warehouse, and if none is set, falls back to the customer's warehouse. When disabled, only the customer's warehouse is used.

On draft sales orders, the warehouse is filled automatically from these partner settings. If no warehouse is found on the partner, Odoo's normal default warehouse logic applies. Confirmed or non-draft orders are not changed by this module.

The warehouse choice is stored per company, so the same customer can have different preferred warehouses in different companies. The setting itself is also stored per company.

It touches res.partner, sale.order, res.company and res.config.settings, and depends on sale_stock.

Depends on

sale_stock
Models and fields (4)
  • sale.order · extends an existing model
  • res.company · extends an existing modelsale_warehouse_by_partner_shipping
  • res.partner · extends an existing modelsale_warehouse_id (Sale Warehouse)
  • res.config.settings · extends an existing modelsale_warehouse_by_partner_shipping

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

Sources · Odoo 19.0

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

terminal Installation and usage

OCA documentation · Odoo 19.0

To set a company-wide default that prioritizes the shipping address’s warehouse (falling back to the customer’s):

  • Go to Sales → Configuration → Settings
  • Enable "Prioritize Shipping Partner in Sale Warehouse Proposal"

On the partner, choose the default warehouse.

Create a sale.order with this partner, the default warehouse is the one from the partner.

You need at least to manage 2 different warehouses.

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.