Product Running Cost & Move Type Tracker
by Nooh Suliman https://www.linkedin.com/in/nooh-suliman/
Odoo
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Inventory (stock)
• Discuss (mail) • Invoicing (account) |
| Lines of code | 122 |
| Technical Name |
running_cost |
| License | LGPL-3 |
| Website | https://www.linkedin.com/in/nooh-suliman/ |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Inventory (stock)
• Discuss (mail) • Invoicing (account) |
| Lines of code | 122 |
| Technical Name |
running_cost |
| License | LGPL-3 |
| Website | https://www.linkedin.com/in/nooh-suliman/ |
Stock Move Line - Running Cost
Track Product Cost at the Exact Moment of Stock Movement
Accurate Cost Snapshot & Smart Movement Classification
Key Features
- â Capture Running Cost at the exact moment of stock validation
- â Cost is frozen forever and never affected by future price changes
- â Automatically detect Move Type for each stock operation
- â Smart classification: Purchase, Sale, Internal, Adjustment, Scrap
- â Visual color-coded badges for quick identification
- â Supports multi-step routes (Pick â Pack â Deliver)
- â Works with Inventory Adjustments and Scrap operations
- â Fully integrated with Moves History and Detailed Operations
- â Secure visibility using access groups for cost control
Running Cost Snapshot
The system captures the product cost at the exact moment the transfer is validated. This value remains unchanged forever for audit and reporting accuracy.
Move Type Classification
Each stock move is automatically labeled and displayed as a colored badge.
- Purchase â Incoming from vendor
- Sale â Outgoing to customer
- Internal â Between warehouses/locations
- Adjustment â Inventory correction
- Damaged Scrap â Scrapped damaged items
- Expired Scrap â Scrapped expired items
Moves History View
Running Cost and Move Type are visible directly in the Moves History list.
Detailed Operations
The same information is available inside each transfer under Detailed Operations.
Technical Highlights
- â Values stored in database (no recomputation)
- â Written once during _action_done()
- â Multi-company cost handling supported
- â Clean and optimized Python logic
- â Fully compatible with Odoo standard stock flow
Author
Developed by Nooh Suliman
linkedin.com/in/nooh-suliman
Please log in to comment on this module