Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
30c3756
[ADD] V8. product_replenishment_cost
legalsylvain Jul 24, 2015
9b2d7ef
[UPD] prefix versions with 8.0
sbidoul Oct 9, 2015
cdab8d3
[MIG] Make modules uninstallable
pedrobaeza Oct 14, 2015
4907743
[MIG] Rename manifest files
pedrobaeza Oct 6, 2016
cc5a2ea
remove obsolete .pot files [ci skip]
sbidoul Jun 15, 2018
95cc70d
migrate product_replenishment_cost to v9
nicomacr Nov 2, 2016
a716707
[MIG] product_replenishment_cost: Migration to 10.0
Jul 31, 2019
3ecc3d5
[PORT][12.0] product_replenishment_cost
legalsylvain Aug 9, 2019
dffd550
Added translation using Weblate (Chinese (Simplified))
liweijie0812 Sep 18, 2019
e9e1cb6
Translated using Weblate (Chinese (Simplified))
liweijie0812 Sep 18, 2019
6590a5e
Added translation using Weblate (Portuguese (Brazil))
marcelsavegnago Mar 14, 2021
5d5cdd7
Added translation using Weblate (Portuguese)
alvarorib Apr 12, 2021
a1a6945
Translated using Weblate (Portuguese)
alvarorib Apr 12, 2021
c4a470a
Added translation using Weblate (Italian)
mymage Dec 28, 2022
599c9cb
Translated using Weblate (Italian)
mymage Dec 28, 2022
40f02d9
[REF] apply pre-commit fixes
legalsylvain Jan 3, 2023
5bb7fac
[IMP] product_replenishment_cost: pre-commit stuff
amarcosg Jun 5, 2023
341a4cd
[MIG] product_replenishment_cost: Migration to 16.0
amarcosg Jun 5, 2023
3a287e4
[UPD] DESCRIPTION.rst
amarcosg Jun 6, 2023
2bf1c9a
[UPD] Update product_replenishment_cost.pot
Jul 25, 2023
96a37ff
Update translation files
weblate Jul 25, 2023
2cc557c
Translated using Weblate (Spanish)
Ivorra78 Aug 21, 2023
1c8a7b5
Translated using Weblate (French)
kbentaleb Jan 8, 2024
6788552
Translated using Weblate (Italian)
mymage Jan 19, 2024
a897364
Translated using Weblate (Portuguese (Brazil))
May 21, 2024
f3f9bf1
[IMP] product_replenishment_cost: pre-commit auto fixes
BhaveshHeliconia Feb 21, 2025
531f3be
[MIG] product_replenishment_cost: Migration to 17.0
BhaveshHeliconia Feb 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[IMP] product_replenishment_cost: pre-commit auto fixes
  • Loading branch information
BhaveshHeliconia committed Dec 15, 2025
commit f3f9bf13a5a67cdce2575f4d731e8788ebc6ee60
56 changes: 35 additions & 21 deletions product_replenishment_cost/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,39 @@ Product Replenishment Cost
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmargin--analysis-lightgray.png?logo=github
:target: https://github.com/OCA/margin-analysis/tree/16.0/product_replenishment_cost
:target: https://github.com/OCA/margin-analysis/tree/17.0/product_replenishment_cost
:alt: OCA/margin-analysis
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/margin-analysis-16-0/margin-analysis-16-0-product_replenishment_cost
:target: https://translation.odoo-community.org/projects/margin-analysis-17-0/margin-analysis-17-0-product_replenishment_cost
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/margin-analysis&target_branch=16.0
:target: https://runboat.odoo-community.org/builds?repo=OCA/margin-analysis&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

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.
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.
"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.
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.
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.
All OCA modules to compute margins are based on it, so you'll be able to
use them in your own way.

**Table of contents**

Expand All @@ -47,41 +60,42 @@ Known issues / Roadmap
======================

Due to framework limitation, the field ``replenishment_cost`` is not
company dependent, while ``standard_price`` is. (in the recent Odoo versions)
company dependent, while ``standard_price`` is. (in the recent Odoo
versions)

It is due to the current impossibility to make working computed field between
two field ``company_dependent=True``.
It is due to the current impossibility to make working computed field
between two field ``company_dependent=True``.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/margin-analysis/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/margin-analysis/issues/new?body=module:%20product_replenishment_cost%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/margin-analysis/issues/new?body=module:%20product_replenishment_cost%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~
-------

* Camptocamp
* GRAP

Contributors
~~~~~~~~~~~~
------------

* Alexandre Fayolle <alexandre.fayolle@camptocamp.com>
* Yannick Vaucher <yannick.vaucher@camptocamp.com>
* Joël Grand-Guillaume <joel.grand-guillaume@camptocamp.com>
* Sylvain Le Gal (https://twitter.com/legalsylvain)
* Marc Poch Mallandrich <mpoch@planetatic.com>
- Alexandre Fayolle <alexandre.fayolle@camptocamp.com>
- Yannick Vaucher <yannick.vaucher@camptocamp.com>
- Joël Grand-Guillaume <joel.grand-guillaume@camptocamp.com>
- Sylvain Le Gal (https://twitter.com/legalsylvain)
- Marc Poch Mallandrich <mpoch@planetatic.com>

Maintainers
~~~~~~~~~~~
-----------

This module is maintained by the OCA.

Expand All @@ -93,6 +107,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/margin-analysis <https://github.com/OCA/margin-analysis/tree/16.0/product_replenishment_cost>`_ project on GitHub.
This module is part of the `OCA/margin-analysis <https://github.com/OCA/margin-analysis/tree/17.0/product_replenishment_cost>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions product_replenishment_cost/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
5 changes: 5 additions & 0 deletions product_replenishment_cost/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- Alexandre Fayolle \<<alexandre.fayolle@camptocamp.com>\>
- Yannick Vaucher \<<yannick.vaucher@camptocamp.com>\>
- Joël Grand-Guillaume \<<joel.grand-guillaume@camptocamp.com>\>
- Sylvain Le Gal (<https://twitter.com/legalsylvain>)
- Marc Poch Mallandrich \<<mpoch@planetatic.com>\>
5 changes: 0 additions & 5 deletions product_replenishment_cost/readme/CONTRIBUTORS.rst

This file was deleted.

22 changes: 22 additions & 0 deletions product_replenishment_cost/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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.
9 changes: 0 additions & 9 deletions product_replenishment_cost/readme/DESCRIPTION.rst

This file was deleted.

6 changes: 6 additions & 0 deletions product_replenishment_cost/readme/ROADMAP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Due to framework limitation, the field `replenishment_cost` is not
company dependent, while `standard_price` is. (in the recent Odoo
versions)

It is due to the current impossibility to make working computed field
between two field `company_dependent=True`.
5 changes: 0 additions & 5 deletions product_replenishment_cost/readme/ROADMAP.rst

This file was deleted.

48 changes: 32 additions & 16 deletions product_replenishment_cost/static/description/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
Expand All @@ -9,10 +8,11 @@

/*
:Author: David Goodger (goodger@python.org)
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
:Copyright: This stylesheet has been placed in the public domain.

Default cascading style sheet for the HTML output of Docutils.
Despite the name, some widely supported CSS2 features are used.

See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
Expand Down Expand Up @@ -275,7 +275,7 @@
margin-left: 2em ;
margin-right: 2em }

pre.code .ln { color: grey; } /* line numbers */
pre.code .ln { color: gray; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
Expand All @@ -301,7 +301,7 @@
span.pre {
white-space: pre }

span.problematic {
span.problematic, pre.problematic {
color: red }

span.section-subtitle {
Expand Down Expand Up @@ -369,12 +369,25 @@ <h1 class="title">Product Replenishment Cost</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:11c36c6abdc64d2df703b1e6a520296b6566111a90c1782d8093576c121677a1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/margin-analysis/tree/16.0/product_replenishment_cost"><img alt="OCA/margin-analysis" src="https://img.shields.io/badge/github-OCA%2Fmargin--analysis-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/margin-analysis-16-0/margin-analysis-16-0-product_replenishment_cost"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/margin-analysis&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>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.</p>
<p>“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.</p>
<p>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.</p>
<p>As it is a generic module, you can also setup your own way of computing the replenishment_cost for your product.</p>
<p>All OCA modules to compute margins are based on it, so you’ll be able to use them in your own way.</p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/margin-analysis/tree/17.0/product_replenishment_cost"><img alt="OCA/margin-analysis" src="https://img.shields.io/badge/github-OCA%2Fmargin--analysis-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/margin-analysis-17-0/margin-analysis-17-0-product_replenishment_cost"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/margin-analysis&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>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.</p>
<p>“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.</p>
<p>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.</p>
<p>As it is a generic module, you can also setup your own way of computing
the replenishment_cost for your product.</p>
<p>All OCA modules to compute margins are based on it, so you’ll be able to
use them in your own way.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand All @@ -391,16 +404,17 @@ <h1 class="title">Product Replenishment Cost</h1>
<div class="section" id="known-issues-roadmap">
<h1><a class="toc-backref" href="#toc-entry-1">Known issues / Roadmap</a></h1>
<p>Due to framework limitation, the field <tt class="docutils literal">replenishment_cost</tt> is not
company dependent, while <tt class="docutils literal">standard_price</tt> is. (in the recent Odoo versions)</p>
<p>It is due to the current impossibility to make working computed field between
two field <tt class="docutils literal">company_dependent=True</tt>.</p>
company dependent, while <tt class="docutils literal">standard_price</tt> is. (in the recent Odoo
versions)</p>
<p>It is due to the current impossibility to make working computed field
between two field <tt class="docutils literal">company_dependent=True</tt>.</p>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/margin-analysis/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/margin-analysis/issues/new?body=module:%20product_replenishment_cost%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/margin-analysis/issues/new?body=module:%20product_replenishment_cost%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
Expand All @@ -425,11 +439,13 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<a class="reference external image-reference" href="https://odoo-community.org">
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
</a>
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/margin-analysis/tree/16.0/product_replenishment_cost">OCA/margin-analysis</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/margin-analysis/tree/17.0/product_replenishment_cost">OCA/margin-analysis</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
Expand Down