In Odoo's ecommerce, it is possible to display product stock levels in the warehouse so that customers can know how much they can purchase and if there are products still available in stock.
Within the ecommerce configuration, you can only choose one warehouse location to associate with ecommerce. However, some companies have multiple locations or warehouses and need to show the total quantity of their products, so that later, they can define from which location to ship the products.
As is…
Website > Configuration > Settings > Shop - Products > Inventory defaults
At this point, you can only select one warehouse location to display your product quantities, but in many cases, businesses have multiple warehouses, and they want to show the total product quantities across all their warehouses to facilitate sales. The customer doesn't need to know the specific warehouse location; they simply want to make a purchase and receive their products.
For this case, here is the workaround in the standard solution:
- Create all your warehouses, for this example we will create 2 new warehouses:
Inventory > Configuration > Warehouses > New
Note that those new warehouses are in different physical locations.
- Create an additional warehouse where it will virtually consolidate the quantities from the other warehouses.
- When you create a new warehouse, Odoo automatically creates all the basic locations for the new warehouse, including a stock location configured by default as an intern location.
For this case, you have to set the TOTWH/Stock location (“Stock location” of “Total Warehouse”) as a view type location. Inventory > Configuration > Locations > Select the TOTWH/Stock location > Change location type to “VIEW”
Set the TOTWH location as the parent location for the two real warehouses (north and south):
Inventory > Configuration > Location > Remove the “internal locations” filter > Select the location > Set parent location
4.1 Remove the internal location filter
4.2 Select the location “NRTWH” or “STHWH” this locations should be in blue and type “View”
4.3 Set parent location “TOTWH” (total warehouse view location)
4.4 Repeat this step for all warehouses you want to include in the virtual warehouse.
- Now you have 3 warehouses, two physical (North and South) and one virtual (Total).
To validate that it works:
- Create one product and set quantities on the two physical locations
- Set the Total Warehouse as the warehouse of e-commerce. Total Warehouse, should summarize the quantities of both physical warehouses.
- Total Warehouse, should summarize the quantities of both physical warehouses.
- Create a sale of the test product (“Cool product” for this case) and make sure to enter a quantity that exceeds the units in one warehouse (100 units in north, 150 units in south) to demonstrate how the system utilizes both warehouses to supply the e-commerce.
- On the delivery form, you can select the internal location(s) where you want to take the products, in this case we will take 100 units from NRTWH/Stock and 75 units from STHWH/Stock:
This description is better than the official Odoo documentation for the same solution, thanks!
https://www.odoo.com/documentation/17.0/applications/inventory_and_mrp/inventory/warehouses_storage/advanced_operations_warehouse/stock_warehouses.html#inventory-routes-link-to-vwh
Is there a solution if the second Warehouse is from a "Branche" from the company? because when implementing the solution, the system gives an error saying that the Parent location belongs to another company.
Thanks