Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Inventory
  3. Warehouse Costing v 18.0
  4. Sales Conditions FAQ

Warehouse Costing

by Creative Digital Solutions (CDS) https://www.cds-solutions.co
Odoo

$ 250.00

v 18.0 Third Party
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Purchase (purchase)
• Invoicing (account)
• Discuss (mail)
• Inventory (stock)
Lines of code 2465
Technical Name warehouse_costing
LicenseOPL-1
Websitehttps://www.cds-solutions.co
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Purchase (purchase)
• Invoicing (account)
• Discuss (mail)
• Inventory (stock)
Lines of code 2465
Technical Name warehouse_costing
LicenseOPL-1
Websitehttps://www.cds-solutions.co
  • Description
  • License
Odoo 18 · v18.0.1.0.0 · OPL-1

Warehouse Costing

Independent FIFO · AVCO · FEFO cost layers per warehouse — with full negative-stock prevention, PPV stamping, landed-cost distribution, and automated inter-warehouse transfer accounting.

FIFO per Warehouse AVCO per Warehouse FEFO per Warehouse Inter-Warehouse Transfers Negative-Stock Guard Landed Costs PPV Stamping FIFO Vacuum Engine

▸ Overview

One Module · Full Warehouse Cost Isolation

Odoo's native costing collapses all stock into a single global pool. This module unlocks truly independent valuation layers per physical warehouse — each warehouse builds its own FIFO queue, AVCO rolling average, or FEFO expiry-ordered stack.

Why it matters: When you source the same product from different suppliers at different prices across warehouses, a global AVCO will always contaminate your per-location margins. Warehouse Costing eliminates that contamination entirely — zero cross-warehouse cost bleed.
📁

Per-Warehouse Cost Layers

Every receipt, return, and transfer creates an SVL stamped with its warehouse. FIFO candidates, AVCO pools, and FEFO queues are all scoped to a single warehouse.

Core Engine
🔒

Negative-Stock Prevention

OUT moves are pre-flight validated against per-warehouse open layers. A clear UserError is raised before posting — no silent negative-cost layers ever created.

Guard Layer
🔄

FIFO Vacuum Engine

Automatic and manual vacuum matches negative-remaining-qty layers to subsequent positive ones and posts GL correction entries to resolve price drift.

Auto-Reconcile
🏭

Inter-Warehouse Transfers

IWT moves consume source warehouse layers (FIFO/AVCO) and seed fresh layers in the destination, with an automatic Dr/Cr journal entry when accounts differ.

GL Automated
🧾

PPV Stamping on Vendor Bills

Purchase Price Variance SVLs from vendor-bill posting are resolved via a 3-step cascade: source SVL → PO receipts → last open layer for same product.

3-Step Cascade
⚓

Landed Cost Distribution

Zero-qty adjustment SVLs are immediately distributed to open layers so future OUT moves use the correct post-landed-cost unit price — fully automatic.

Auto-Distribute
📴

Customer Returns — AVCO

Customer returns in AVCO mode reinstate inventory at the exact original COGS unit cost of the OUT SVL — not the current rolling average — preserving margin accuracy.

Original Cost
💲

Standard-Price Revaluation

Cost-change SVLs distribute proportionally across warehouses by on-hand qty for FIFO/FEFO. AVCO warehouses skip cross-WH distribution to prevent contamination.

IAS 2 Compliant
🔁

Costing Method Change

Switching methods rebalances open layers to weighted average (IAS 2 §36 prospective), posts the GL delta entry, and logs a full audit trail on the product category.

Audit Trail

▸ Costing Methods

Three Methods · One Category Setting

Configure from the Warehouse Costing tab on any product category. Different categories can use different methods simultaneously.

FIFO

First In First Out

The oldest cost layers are consumed first within each warehouse's independent FIFO queue. Ideal for perishables and traceability-critical products.

▸ Advisory row-level locking
▸ Vacuum on every IN move
▸ SAVEPOINT per vacuum pair
AVCO

Average Cost

Rolling weighted-average cost from open layers' remaining_value ÷ remaining_qty, scoped to each warehouse. No cross-warehouse average contamination.

▸ Recomputed dynamically
▸ Shortfall distribution logic
▸ Vacuum resolves negatives
FEFO

First Expired First Out

Expiry-date-ordered FIFO: layers with the earliest expiry_date are consumed first. Lots with expiration dates required on all moves.

▸ Expiry stamped from lot
▸ NULLS LAST ordering
▸ Falls back to move_date

▸ Screenshots

Native Odoo UI — Zero Custom Views

All configuration lives inside Odoo's standard Settings and Product Category screens. No custom menus or separate apps needed.

Inventory Settings

Inventory Settings · Enable Toggle

Product Category Tab

Product Category · Warehouse Costing Tab

▸ Architecture

Warehouse Resolution — 4-Layer SQL Cascade

Every SVL creation resolves the warehouse through a deterministic, cached cascade — SQL-first for performance, ORM fallback for edge cases.

STEP 01

lot_stock_id

Direct SQL match on the warehouse's main stock location.

STEP 02

Input / Output

Match against wh_input, wh_output, wh_pack locations.

STEP 03

ORM Computed

Invalidate cache, read warehouse_id from stock.location.

STEP 04

parent_path LIKE

SQL LIKE on ancestor parent_path — longest match wins.

PPV 3-Step Cascade: For Purchase Price Variance SVLs from vendor-bill posting — Step 1: source SVL via PO receipt moves · Step 2: invoice → PO → done incoming pickings · Step 3: last open SVL for same product (heuristic fallback).

▸ Configuration Reference

System Parameters

Parameter Default Description
warehouse_costing.enable False Master switch. Accepts: true / 1 / yes / on / y / t
warehouse_costing.recompute_batch_size 5000 Batch size for scheduled recompute of SVL remaining values.
warehouse_costing.journal_id.{company_id} (auto) Per-company journal ID for vacuum and IWT correction entries.

▸ Product Category Fields

Field Values Notes
warehouse_costing_method none · fifo_by_warehouse · avco_by_warehouse · fefo_by_warehouse Stored per category. Changing triggers layer rebalancing + GL entry.
costing_method_history (auto-generated) Append-only audit log: timestamp, user, old → new method.

▸ Technical

Stack & Dependencies

Pure Python extension — no npm packages, no external services, no schema-breaking migrations on standard Odoo tables.

Module Dependencies
stock_account purchase_stock stock_landed_costs PostgreSQL advisory locks SAVEPOINTs per vacuum pair SQL parent_path resolution ORM cache invalidation Odoo 18 · OPL-1
Extended Models (11)
stock.valuation.layer stock.move stock.picking stock.quant stock.location stock.landed.cost account.move product.category product.template product.product res.config.settings

▸ What's Included

Full-Stack Coverage

✓ Per-warehouse SVL fields — warehouse_id, warehouse_remaining_qty, warehouse_remaining_value, source_svl_id, expiry_date, move_date, location_id / location_dest_id on every layer.
✓ FIFO / FEFO / AVCO consumption engines — per-warehouse candidate queries via SQL (move_date ASC / expiry_date ASC), advisory row-locking, and deduction logic with remaining_value bookkeeping.
✓ FIFO Vacuum — scheduled or manual reconciliation of negative layers, SAVEPOINT-wrapped per pair, GL correction JE via _create_vacuum_accounting_entry.
✓ IWT Journal Entries — automatic Dr destination-stock / Cr source-stock when company-level stock valuation accounts differ across warehouses.
✓ Intra-warehouse JE suppression — _account_entry_move returns False for same-warehouse transfers; IWT posts its own dedicated JE instead.
✓ Standard-price rebalancing — distributed by on-hand-qty proportions across warehouses for FIFO/FEFO; AVCO warehouses skip cross-WH distribution.
✓ Costing method switch (IAS 2 §36) — on-the-fly rebalancing of open layers to weighted average, GL entry for the value difference, full audit trail.
✓ Smart buttons — Warehouse Stock layers on product template/variant, Cost Layers count on picking, FIFO Vacuum trigger for managers.
✓ Quant enrichment — WH Stock Value, Avg Unit Cost (Warehouse), Open Layers count computed from open SVLs and displayed in the inventory quant list view.
✓ Landed Cost domain restriction — picking_ids limited to validated incoming transfers with valuation entries, preventing attachment to deliveries.
CDS · Warehouse Costing
VERSION 18.0.1.0.0 · OPL-1 · ODOO 18 · INVENTORY / INVENTORY
www.cds-solutions.co
Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with