Odoo's standard inventory valuation, including the average cost method, is typically managed at the company level, not per individual warehouse.
The standard_price
field on the product template represents a single, global average cost for that product across all warehouses within the same company.
Therefore, Odoo does not natively support maintaining different average costs for the same product in various warehouses without creating separate companies.
Achieving warehouse-specific average costing would require significant custom development to modify Odoo's core costing engine and valuation reports. This is a complex undertaking.
If you'd like to explore this further for your specific use case, you're welcome to connect with us at Pragmatic Techsoft.
the point that when we sell product from warehouse A for example it should take the cost in warehouse A and if sell it from B so it should take cost in B