Replenishment cost

product_get_cost_field
REPOSITORY
REPOSITORYOCA/margin-analysis
GIT
GIThttps://github.com/OCA/margin-analysis.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/margin-analysis/tree/7.0/product_get_cost_field
VERSION
VERSION 1.0.3
CATEGORY
CATEGORYProducts
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSCamptocamp
COMMITTERS
COMMITTERSYannick Vaucher, Guewen Baconnier, Alexandre Fayolle, Joel Grand-Guillaume, Lionel Sausin (Numérigraphe)
WEBSITE
WEBSITEhttp://www.camptocamp.com/
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:07:15
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - product
    - base
    - process
    - web
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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 IDNameModelTypeStatus
product_get_cost_field_form product.get_cost_field.view.form product.product field Inherits product.product_normal_form_view
product_get_cost_field_tree product.get_cost_field.view.tree product.product field Inherits product.product_product_tree_view
Models touched (1)

New fields (0)

No new fields.

Public methods (1)
  • get_cost_field(self, cr, uid, ids, context=None)
REPOSITORY
REPOSITORYOCA/margin-analysis
GIT
GIThttps://github.com/OCA/margin-analysis.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/margin-analysis/tree/6.1/product_get_cost_field
VERSION
VERSION 0.1
CATEGORY
CATEGORYProducts
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSCamptocamp
COMMITTERS
COMMITTERSAlexandre Fayolle, Joël Grand-Guillaume, Alexandre Fayolle @ camptocamp, Endian Solutions
WEBSITE
WEBSITEhttp://www.camptocamp.com/
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:04:06
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - product
    - base
    - process
    - decimal_precision
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
 Provides an overridable method on product which compute the cost_price field of a product. 
 By default it just return the value of standard_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 our modules to compute margin are based on it, so you'll ba able to use them in your own way.
 

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
product_get_cost_field_form product.get_cost_field.view.form product.product field Inherits product.product_normal_form_view
product_get_cost_field_tree product.get_cost_field.view.tree product.product field Inherits product.product_product_tree_view
Models touched (1)

New fields (0)

No new fields.

Public methods (1)
  • get_cost_field(self, cr, uid, ids, context=None)