OdooWiki OCA HUB

Sale Stock Warehouse Partner

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

This module allows setting a warehouse on partner records and applies a priority sequence when creating a Sale Order. If the warehouse is defined at a higher-priority level, it will override the lower ones. Priority are defined following next order: partner_shipping_id, partner_id and last user_id.

auto_awesome What this module does

AI-generated from the code · Odoo 15.0

Lets you set a default warehouse on a contact so that new sales orders for that customer automatically use it. The delivery address warehouse takes priority over the customer's warehouse.

This module adds a Warehouse field to contact records and uses it to fill in the warehouse on sales orders automatically.

On a contact form, a new Warehouse field appears near the supplier location field. You can set a different warehouse per company, so the same contact can point to different warehouses depending on which company you are working in.

When a sales order is created, Odoo looks up the warehouse in this order: - first the warehouse set on the delivery address of the order; - if that is empty, the warehouse set on the customer contact.

The result is stored on the sales order and shown in its Warehouse field. The field is required and normally read-only, but it can still be changed while the order is in draft or sent status, so users can override the automatic choice before confirming.

The warehouse must belong to the same company as the sales order, which prevents mixing warehouses from different companies.

This affects the res.partner and sale.order models and the contact form view. No new menus, reports or scheduled actions are added.

Depends on

sale_stock
Models and fields (2)
  • sale.order · extends an existing modelwarehouse_id (Warehouse)
  • res.partner · extends an existing modelsale_warehouse_id (Warehouse)

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

Sources · Odoo 15.0

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

terminal Installation and usage

OCA documentation · Odoo 15.0

When creating a sale order, the system will automatically assign the warehouse according to the above sequence. Changing the customer, delivery address, salesperson will re-trigger the warehouse selection.

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.