Captivea LLC · Odoo Gold Partner
Auto-Select Warehouse
Set the right shipping warehouse on every quotation automatically, based on the customer, the delivery state or the delivery country.
Overview
Companies with several warehouses often ship from the wrong location because the salesperson forgets to change the warehouse on the quotation. This module adds an Auto Delivery Warehouse field to customers, states and countries. When a quotation is created or its customer or delivery address changes, Odoo applies the most specific matching rule. If no rule matches, Odoo's standard warehouse is kept.
Key Features
Customer Warehouse
Give a key account its own warehouse. A warehouse set on the parent company also applies to its contacts.
State & Country Routing
Ship from a regional warehouse based on the delivery address, with the country as a broader fallback.
Automatic on Quotations
The warehouse is set on draft and sent quotations. Confirmed orders are never changed, and users can still pick another warehouse manually.
Multi-Company Safe
A rule is only applied when its warehouse belongs to the company of the quotation.
Selection Priority
Rules are checked in this order. The first one that matches wins.
1
Customer
Warehouse on the customer, then on its parent company.
2
Delivery State
Warehouse on the state of the delivery address.
3
Delivery Country
Warehouse on the country of the delivery address.
4
Odoo Default
No match: Odoo's standard warehouse for the user and company is kept.
Configuration & Workflow
These screens were captured from the live Odoo 20 interface. Multi-warehouse must be enabled in Inventory → Configuration → Settings → Warehouses.
01
Assign a Warehouse to a Customer
Open the customer in Contacts, go to the Sales & Purchase tab and set Auto Delivery Warehouse. This rule has the highest priority.
02
Route by State
Go to Contacts → Configuration → Fed. States, open a state and set its Auto Delivery Warehouse.
03
Set a Country Fallback
Go to Contacts → Configuration → Countries and set the warehouse used for any delivery address in that country without a state rule.
04
Customer Rule on a Quotation
Create a quotation for the key account. Its delivery address is in Texas, but the customer rule wins: the Other Info tab shows Key Account Warehouse.
05
State Rule on a Quotation
A customer without its own warehouse, delivered in California, gets California Distribution Center from the state rule.
06
Country Fallback on a Quotation
A customer delivered in Illinois, a state with no rule, falls back to the country warehouse: US Main Warehouse.
07
Review Orders by Warehouse
In Sales → Quotations, group by Warehouse to check that each order was routed to the expected location.
Quick Start
- Install the module and enable multiple warehouses.
- Assign warehouses to key customers.
- Configure state and country warehouses.
- Create a quotation and check the warehouse in Other Info.
Built for Odoo 20
Community & Enterprise · On Premise · Odoo.sh
Requirements
Requires Odoo Sales, Inventory and Contacts, with at least two warehouses. No third-party dependencies.
Need Help?
Captivea is a worldwide Odoo Gold Partner. Contact us for implementation, customization and support.

| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Contacts (contacts)
• Discuss (mail) • Inventory (stock) • Invoicing (account) • Sales (sale_management) |
| Lines of code | 111 |
| Technical Name |
cap_auto_select_warehouse |
| License | LGPL-3 |
| Website | https://www.captivea.com |
Please log in to comment on this module