Skip to content

Commit dc074b5

Browse files
[IMP] product_replenishment_cost: pre-commit auto fixes
1 parent dc120f9 commit dc074b5

File tree

9 files changed

+103
-56
lines changed

9 files changed

+103
-56
lines changed

product_replenishment_cost/README.rst

Lines changed: 35 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,39 @@ Product Replenishment Cost
1717
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1818
:alt: License: AGPL-3
1919
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmargin--analysis-lightgray.png?logo=github
20-
:target: https://github.com/OCA/margin-analysis/tree/16.0/product_replenishment_cost
20+
:target: https://github.com/OCA/margin-analysis/tree/17.0/product_replenishment_cost
2121
:alt: OCA/margin-analysis
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/margin-analysis-16-0/margin-analysis-16-0-product_replenishment_cost
23+
:target: https://translation.odoo-community.org/projects/margin-analysis-17-0/margin-analysis-17-0-product_replenishment_cost
2424
:alt: Translate me on Weblate
2525
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26-
:target: https://runboat.odoo-community.org/builds?repo=OCA/margin-analysis&target_branch=16.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/margin-analysis&target_branch=17.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
3030

31-
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.
31+
Provides an overridable method on product which compute the
32+
Replenishment cost of a product. By default it just returns the value of
33+
"Cost price" field, but using the product_cost_incl_bom module, it will
34+
return the costing from the bom.
3235

33-
"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.
36+
"Cost price" is the cost assigned for each product in the warehouse and
37+
the "Replenishment cost" is the cost it would cost to buy a new product.
38+
They are different costs because the cost price depends on your
39+
valuation method and the operations you have performed while the
40+
replenishment cost is determined by the current market conditions.
3441

35-
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.
42+
For example: The price of the product in the supplier's catalog is
43+
€15/piece. Therefore, if I want to buy a new unit, my replenishment cost
44+
would be €15. But if my stock comes from having bought it in a special
45+
offer that allowed me to buy it for €10, then my cost price is
46+
€10/piece.
3647

37-
As it is a generic module, you can also setup your own way of computing the replenishment_cost for your product.
48+
As it is a generic module, you can also setup your own way of computing
49+
the replenishment_cost for your product.
3850

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

4154
**Table of contents**
4255

@@ -47,41 +60,42 @@ Known issues / Roadmap
4760
======================
4861

4962
Due to framework limitation, the field ``replenishment_cost`` is not
50-
company dependent, while ``standard_price`` is. (in the recent Odoo versions)
63+
company dependent, while ``standard_price`` is. (in the recent Odoo
64+
versions)
5165

52-
It is due to the current impossibility to make working computed field between
53-
two field ``company_dependent=True``.
66+
It is due to the current impossibility to make working computed field
67+
between two field ``company_dependent=True``.
5468

5569
Bug Tracker
5670
===========
5771

5872
Bugs are tracked on `GitHub Issues <https://github.com/OCA/margin-analysis/issues>`_.
5973
In case of trouble, please check there if your issue has already been reported.
6074
If you spotted it first, help us to smash it by providing a detailed and welcomed
61-
`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**>`_.
75+
`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**>`_.
6276

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

6579
Credits
6680
=======
6781

6882
Authors
69-
~~~~~~~
83+
-------
7084

7185
* Camptocamp
7286
* GRAP
7387

7488
Contributors
75-
~~~~~~~~~~~~
89+
------------
7690

77-
* Alexandre Fayolle <[email protected]>
78-
* Yannick Vaucher <[email protected]>
79-
* Joël Grand-Guillaume <[email protected]>
80-
* Sylvain Le Gal (https://twitter.com/legalsylvain)
81-
* Marc Poch Mallandrich <[email protected]>
91+
- Alexandre Fayolle <[email protected]>
92+
- Yannick Vaucher <[email protected]>
93+
- Joël Grand-Guillaume <[email protected]>
94+
- Sylvain Le Gal (https://twitter.com/legalsylvain)
95+
- Marc Poch Mallandrich <[email protected]>
8296

8397
Maintainers
84-
~~~~~~~~~~~
98+
-----------
8599

86100
This module is maintained by the OCA.
87101

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

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

98112
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
- Alexandre Fayolle \<<[email protected]>\>
2+
- Yannick Vaucher \<<[email protected]>\>
3+
- Joël Grand-Guillaume \<<[email protected]>\>
4+
- Sylvain Le Gal (<https://twitter.com/legalsylvain>)
5+
- Marc Poch Mallandrich \<<[email protected]>\>

product_replenishment_cost/readme/CONTRIBUTORS.rst

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Provides an overridable method on product which compute the
2+
Replenishment cost of a product. By default it just returns the value of
3+
"Cost price" field, but using the product_cost_incl_bom module, it will
4+
return the costing from the bom.
5+
6+
"Cost price" is the cost assigned for each product in the warehouse and
7+
the "Replenishment cost" is the cost it would cost to buy a new product.
8+
They are different costs because the cost price depends on your
9+
valuation method and the operations you have performed while the
10+
replenishment cost is determined by the current market conditions.
11+
12+
For example: The price of the product in the supplier's catalog is
13+
€15/piece. Therefore, if I want to buy a new unit, my replenishment cost
14+
would be €15. But if my stock comes from having bought it in a special
15+
offer that allowed me to buy it for €10, then my cost price is
16+
€10/piece.
17+
18+
As it is a generic module, you can also setup your own way of computing
19+
the replenishment_cost for your product.
20+
21+
All OCA modules to compute margins are based on it, so you'll be able to
22+
use them in your own way.

product_replenishment_cost/readme/DESCRIPTION.rst

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Due to framework limitation, the field `replenishment_cost` is not
2+
company dependent, while `standard_price` is. (in the recent Odoo
3+
versions)
4+
5+
It is due to the current impossibility to make working computed field
6+
between two field `company_dependent=True`.

product_replenishment_cost/readme/ROADMAP.rst

Lines changed: 0 additions & 5 deletions
This file was deleted.

product_replenishment_cost/static/description/index.html

Lines changed: 32 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<?xml version="1.0" encoding="utf-8"?>
21
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
32
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
43
<head>
@@ -9,10 +8,11 @@
98

109
/*
1110
:Author: David Goodger ([email protected])
12-
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
11+
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
1312
:Copyright: This stylesheet has been placed in the public domain.
1413
1514
Default cascading style sheet for the HTML output of Docutils.
15+
Despite the name, some widely supported CSS2 features are used.
1616
1717
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
1818
customize this style sheet.
@@ -275,7 +275,7 @@
275275
margin-left: 2em ;
276276
margin-right: 2em }
277277

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

304-
span.problematic {
304+
span.problematic, pre.problematic {
305305
color: red }
306306

307307
span.section-subtitle {
@@ -369,12 +369,25 @@ <h1 class="title">Product Replenishment Cost</h1>
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370370
!! source digest: sha256:11c36c6abdc64d2df703b1e6a520296b6566111a90c1782d8093576c121677a1
371371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372-
<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>
373-
<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>
374-
<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>
375-
<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>
376-
<p>As it is a generic module, you can also setup your own way of computing the replenishment_cost for your product.</p>
377-
<p>All OCA modules to compute margins are based on it, so you’ll be able to use them in your own way.</p>
372+
<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>
373+
<p>Provides an overridable method on product which compute the
374+
Replenishment cost of a product. By default it just returns the value of
375+
“Cost price” field, but using the product_cost_incl_bom module, it will
376+
return the costing from the bom.</p>
377+
<p>“Cost price” is the cost assigned for each product in the warehouse and
378+
the “Replenishment cost” is the cost it would cost to buy a new product.
379+
They are different costs because the cost price depends on your
380+
valuation method and the operations you have performed while the
381+
replenishment cost is determined by the current market conditions.</p>
382+
<p>For example: The price of the product in the supplier’s catalog is
383+
€15/piece. Therefore, if I want to buy a new unit, my replenishment cost
384+
would be €15. But if my stock comes from having bought it in a special
385+
offer that allowed me to buy it for €10, then my cost price is
386+
€10/piece.</p>
387+
<p>As it is a generic module, you can also setup your own way of computing
388+
the replenishment_cost for your product.</p>
389+
<p>All OCA modules to compute margins are based on it, so you’ll be able to
390+
use them in your own way.</p>
378391
<p><strong>Table of contents</strong></p>
379392
<div class="contents local topic" id="contents">
380393
<ul class="simple">
@@ -391,16 +404,17 @@ <h1 class="title">Product Replenishment Cost</h1>
391404
<div class="section" id="known-issues-roadmap">
392405
<h1><a class="toc-backref" href="#toc-entry-1">Known issues / Roadmap</a></h1>
393406
<p>Due to framework limitation, the field <tt class="docutils literal">replenishment_cost</tt> is not
394-
company dependent, while <tt class="docutils literal">standard_price</tt> is. (in the recent Odoo versions)</p>
395-
<p>It is due to the current impossibility to make working computed field between
396-
two field <tt class="docutils literal">company_dependent=True</tt>.</p>
407+
company dependent, while <tt class="docutils literal">standard_price</tt> is. (in the recent Odoo
408+
versions)</p>
409+
<p>It is due to the current impossibility to make working computed field
410+
between two field <tt class="docutils literal">company_dependent=True</tt>.</p>
397411
</div>
398412
<div class="section" id="bug-tracker">
399413
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
400414
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/margin-analysis/issues">GitHub Issues</a>.
401415
In case of trouble, please check there if your issue has already been reported.
402416
If you spotted it first, help us to smash it by providing a detailed and welcomed
403-
<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>
417+
<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>
404418
<p>Do not contact contributors directly about support or help with technical issues.</p>
405419
</div>
406420
<div class="section" id="credits">
@@ -425,11 +439,13 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
425439
<div class="section" id="maintainers">
426440
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
427441
<p>This module is maintained by the OCA.</p>
428-
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
442+
<a class="reference external image-reference" href="https://odoo-community.org">
443+
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
444+
</a>
429445
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
430446
mission is to support the collaborative development of Odoo features and
431447
promote its widespread use.</p>
432-
<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>
448+
<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>
433449
<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>
434450
</div>
435451
</div>

0 commit comments

Comments
 (0)