TIP: You can type at any time to perform a new search.
Replenishment cost
product_get_cost_field · OCA/margin-analysis
Security findings
Migration considerations
- Imports from the old `openerp.osv` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- For a target of Odoo 10.0+: use the `__manifest__.py` manifest name instead of `__openerp__.py`. The filename alone does not establish module age or compatibility. migration-openerp-manifest · source
product_product— Class 'product_product' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceproduct_product— Class 'product_product' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · source
Migration review checklist, not a compatibility verdict. No target version is selected: apply version-specific advice only when migrating to that version or later.
- Repository
- OCA/margin-analysis · module folder · Try on Runboat
- Module version
- 1.0.3
- Category
- Products
- Folder size
- 0.01 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- http://www.camptocamp.com/
- Last tracking update
- 2026-08-07 06:56:11
- Authors
- Camptocamp, Odoo Community Association (OCA)
- Maintainers
- Camptocamp
- Committers
- Yannick Vaucher, Guewen Baconnier, Alexandre Fayolle, Joel Grand-Guillaume, Lionel Sausin (Numérigraphe)
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- product_cost_incl_bom, product_historical_margin, product_standard_margin, product_stock_cost_field_report, sale_markup
- Description
Product Replenishment Cost ========================== 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. As it is a generic module, you can also setup your own way of computing the cost_price 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. Contributors ------------ * Alexandre Fayolle <alexandre.fayolle@camptocamp.com> * Yannick Vaucher <yannick.vaucher@camptocamp.com> * Joël Grand-Guillaume <joel.grand-guillaume@camptocamp.com>
Code Analysis
Views touched (2)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
product_get_cost_field_form |
product.get_cost_field.view.form | product.product | form | Inherits product.product_normal_form_view |
product_get_cost_field_tree |
product.get_cost_field.view.tree | product.product | tree | Inherits product.product_product_tree_view |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (1)
New fields (0)
No new fields.
Public methods (1)-
get_cost_field(self, cr, uid, ids, context=None)
Loading…