Repository
OCA/margin-analysis · module folder · Try on Runboat
Module version
1.0.0
Category
Products
Folder size
0.05 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/margin-analysis
Last tracking update
2026-08-07 08:42:57
Authors
Camptocamp, Odoo Community Association (OCA), GRAP
Maintainers
Camptocamp, Odoo Community Association (OCA), GRAP
Committers
OCA-git-bot, oca-ci, Bhavesh Heliconia
Odoo dependencies
odoo/odoo:
- web
- bus
- uom
Python dependencies
None
System dependencies
None
Required by
None
Description
Provides an overridable method on product which compute the
Replenishment cost of a product. By default it just returns the value of
"Cost price" field, but using the product_cost_incl_bom module, it will
return the costing from the bom.

"Cost price" is the cost assigned for each product in the warehouse and
the "Replenishment cost" is the cost it would cost to buy a new product.
They are different costs because the cost price depends on your
valuation method and the operations you have performed while the
replenishment cost is determined by the current market conditions.

For example: The price of the product in the supplier's catalog is
€15/piece. Therefore, if I want to buy a new unit, my replenishment cost
would be €15. But if my stock comes from having bought it in a special
offer that allowed me to buy it for €10, then my cost price is
€10/piece.

As it is a generic module, you can also setup your own way of computing
the replenishment_cost for your product.

All OCA modules to compute margins are based on it, so you'll be able to
use them in your own way.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_product_product_form product.product form Inherits product.product_normal_form_view
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (1)

New fields (1)
  • replenishment_cost Float
    compute='_compute_replenishment_cost' digits='Product Price' help='The cost that you have to support in order to produce or acquire the goods. Depending on the modules installed, this cost may be computed based on various pieces of information, for example Bills of Materials or latest Purchases. By default, the Replenishment cost is the same as the Cost Price.' store=True string='Replenishment cost'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
green — ready to merge
Open since
545 days ago
Last activity
32 days ago
Repository
OCA/margin-analysis
Pull request
[17.0][MIG] product_replenishment_cost: Migration to 17.0 (#238)