Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
03ee33d
[ADD] V8. product_replenishment_cost
legalsylvain Jul 24, 2015
cc6d29e
[UPD] prefix versions with 8.0
sbidoul Oct 9, 2015
6663431
[MIG] Make modules uninstallable
pedrobaeza Oct 14, 2015
e3827a0
[MIG] Rename manifest files
pedrobaeza Oct 6, 2016
a839a8a
remove obsolete .pot files [ci skip]
sbidoul Jun 15, 2018
1c640a3
migrate product_replenishment_cost to v9
nicomacr Nov 2, 2016
56f18de
[MIG] product_replenishment_cost: Migration to 10.0
Jul 31, 2019
4a7a331
[PORT][12.0] product_replenishment_cost
legalsylvain Aug 9, 2019
7d2dc96
Added translation using Weblate (Chinese (Simplified))
liweijie0812 Sep 18, 2019
7c13298
Translated using Weblate (Chinese (Simplified))
liweijie0812 Sep 18, 2019
c3d2125
Added translation using Weblate (Portuguese (Brazil))
marcelsavegnago Mar 14, 2021
89bb272
Added translation using Weblate (Portuguese)
alvarorib Apr 12, 2021
6778a12
Translated using Weblate (Portuguese)
alvarorib Apr 12, 2021
e69b4cc
Added translation using Weblate (Italian)
mymage Dec 28, 2022
f4c505a
Translated using Weblate (Italian)
mymage Dec 28, 2022
0c870b3
[REF] apply pre-commit fixes
legalsylvain Jan 3, 2023
48414c9
[IMP] product_replenishment_cost: pre-commit stuff
amarcosg Jun 5, 2023
954e3b1
[MIG] product_replenishment_cost: Migration to 16.0
amarcosg Jun 5, 2023
1d86133
[UPD] DESCRIPTION.rst
amarcosg Jun 6, 2023
9b8a185
[UPD] Update product_replenishment_cost.pot
Jul 25, 2023
07b9e70
Update translation files
weblate Jul 25, 2023
1de1b2b
Translated using Weblate (Spanish)
Ivorra78 Aug 21, 2023
2c05f7b
Translated using Weblate (French)
kbentaleb Jan 8, 2024
ccd4a8f
Translated using Weblate (Italian)
mymage Jan 19, 2024
a918382
Translated using Weblate (Portuguese (Brazil))
May 21, 2024
3532101
[IMP] product_replenishment_cost: pre-commit auto fixes
BhaveshHeliconia Feb 14, 2025
d3989cc
[MIG] product_replenishment_cost: Migration to 18.0
BhaveshHeliconia Feb 14, 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
115 changes: 115 additions & 0 deletions product_replenishment_cost/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
==========================
Product Replenishment Cost
==========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:11c36c6abdc64d2df703b1e6a520296b6566111a90c1782d8093576c121677a1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
: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/18.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-18-0/margin-analysis-18-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=18.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.

"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.

**Table of contents**

.. contents::
:local:

Known issues / Roadmap
======================

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``.

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:%2018.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 <[email protected]>
- Yannick Vaucher <[email protected]>
- Joël Grand-Guillaume <[email protected]>
- Sylvain Le Gal (https://twitter.com/legalsylvain)
- Marc Poch Mallandrich <[email protected]>
- `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`__

- Bhavesh Heliconia

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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/18.0/product_replenishment_cost>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions product_replenishment_cost/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
21 changes: 21 additions & 0 deletions product_replenishment_cost/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright (C) 2012 - Today: Camptocamp SA
# Copyright (C) 2016 - Today: GRAP (http://www.grap.coop)
# @author: Alexandre Fayolle
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Product Replenishment Cost",
"summary": "Provides an overridable method on product which compute"
"the Replenishment cost of a product",
"version": "18.0.1.0.0",
"author": "Camptocamp,GRAP,Odoo Community Association (OCA)",
"license": "AGPL-3",
"category": "Products",
"depends": [
"product",
],
"website": "https://github.com/OCA/margin-analysis",
"data": [
"views/product_view.xml",
],
"installable": True,
}
47 changes: 47 additions & 0 deletions product_replenishment_cost/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# # Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_replenishment_cost
#
# Translators:
# PlanetaTIC - Marc Poch <[email protected]>, 2019
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 7.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-30 16:52+0000\n"
"PO-Revision-Date: 2023-09-02 18:17+0000\n"
"Last-Translator: Ivorra78 <[email protected]>\n"
"Language-Team: \n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: product_replenishment_cost
#: model:ir.model,name:product_replenishment_cost.model_product_product
msgid "Product Variant"
msgstr "Variante del producto"

#. module: product_replenishment_cost
#: model:ir.model.fields,field_description:product_replenishment_cost.field_product_product__replenishment_cost
msgid "Replenishment cost"
msgstr "Coste de reposición"

#. module: product_replenishment_cost
#: model:ir.model.fields,help:product_replenishment_cost.field_product_product__replenishment_cost
msgid ""
"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."
msgstr ""
"El coste que tiene que pagar para producir o adquirir los bienes. "
"Dependiendo de los módulos instalados, este coste puede calcularse en "
"función de diversos datos, por ejemplo, listas de materiales o compras más "
"recientes. De forma predeterminada, el coste de reposición es el mismo que "
"el precio de coste."

#~ msgid "Product"
#~ msgstr "Producto"
45 changes: 45 additions & 0 deletions product_replenishment_cost/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_replenishment_cost
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-08-09 17:05+0000\n"
"PO-Revision-Date: 2024-01-09 00:49+0000\n"
"Last-Translator: kbentaleb <[email protected]>\n"
"Language-Team: \n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: product_replenishment_cost
#: model:ir.model,name:product_replenishment_cost.model_product_product
msgid "Product Variant"
msgstr "Variantes de produit"

#. module: product_replenishment_cost
#: model:ir.model.fields,field_description:product_replenishment_cost.field_product_product__replenishment_cost
msgid "Replenishment cost"
msgstr "Coût de réapprovisionnement"

#. module: product_replenishment_cost
#: model:ir.model.fields,help:product_replenishment_cost.field_product_product__replenishment_cost
msgid ""
"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."
msgstr ""
"Le coût que vous devez prendre en charge pour produire ou acquerir la "
"marchandise. Selon les modules installés, le calcul de ce coût peut "
"s'appuyer sur diverses informations : par exemple les nomenclatures ou les "
"derniers achats. Par défaut, le coût de réapprovisionnement est le même que "
"le Prix de revient."

#~ msgid "Product"
#~ msgstr "Article"
43 changes: 43 additions & 0 deletions product_replenishment_cost/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_replenishment_cost
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-01-19 10:33+0000\n"
"Last-Translator: mymage <[email protected]>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: product_replenishment_cost
#: model:ir.model,name:product_replenishment_cost.model_product_product
msgid "Product Variant"
msgstr "Variante prodotto"

#. module: product_replenishment_cost
#: model:ir.model.fields,field_description:product_replenishment_cost.field_product_product__replenishment_cost
msgid "Replenishment cost"
msgstr "Costo rifornimento"

#. module: product_replenishment_cost
#: model:ir.model.fields,help:product_replenishment_cost.field_product_product__replenishment_cost
msgid ""
"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."
msgstr ""
"Il costo che si sostiene per produrre o acquistare il bene. In funzione dei "
"moduli installati, questo costo può essere calcolato in base a varie "
"informazioni, per esempio distinte base o gli ultimi acquisti. Il costo di "
"rifornimento predefinito è lo stesso del prezzo di costo."

#~ msgid "Product"
#~ msgstr "Prodotto"
41 changes: 41 additions & 0 deletions product_replenishment_cost/i18n/nl.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Translation of OpenERP Server.
# This file contains the translation of the following modules:
# * product_replenishment_cost
#
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 6.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-12-23 10:21+0000\n"
"PO-Revision-Date: 2012-12-23 11:28+0100\n"
"Last-Translator: Erwin van der Ploeg | Endian Solutions "
"<[email protected]>\n"
"Language-Team: \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: \n"
"X-Generator: Poedit 1.5.4\n"

#. module: product_replenishment_cost
#: model:ir.model,name:product_replenishment_cost.model_product_product
msgid "Product Variant"
msgstr ""

#. module: product_replenishment_cost
#: model:ir.model.fields,field_description:product_replenishment_cost.field_product_product__replenishment_cost
msgid "Replenishment cost"
msgstr "Kostprijs (incl. kosten)"

#. module: product_replenishment_cost
#: model:ir.model.fields,help:product_replenishment_cost.field_product_product__replenishment_cost
msgid ""
"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."
msgstr "Dit is de kostprijs, inclusief eventuele kosten."

#~ msgid "Product"
#~ msgstr "Product"
33 changes: 33 additions & 0 deletions product_replenishment_cost/i18n/product_replenishment_cost.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_replenishment_cost
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: product_replenishment_cost
#: model:ir.model,name:product_replenishment_cost.model_product_product
msgid "Product Variant"
msgstr ""

#. module: product_replenishment_cost
#: model:ir.model.fields,field_description:product_replenishment_cost.field_product_product__replenishment_cost
msgid "Replenishment cost"
msgstr ""

#. module: product_replenishment_cost
#: model:ir.model.fields,help:product_replenishment_cost.field_product_product__replenishment_cost
msgid ""
"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."
msgstr ""
43 changes: 43 additions & 0 deletions product_replenishment_cost/i18n/pt.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_replenishment_cost
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2021-04-12 16:46+0000\n"
"Last-Translator: alvarorib <[email protected]>\n"
"Language-Team: none\n"
"Language: pt\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 4.3.2\n"

#. module: product_replenishment_cost
#: model:ir.model,name:product_replenishment_cost.model_product_product
msgid "Product Variant"
msgstr ""

#. module: product_replenishment_cost
#: model:ir.model.fields,field_description:product_replenishment_cost.field_product_product__replenishment_cost
msgid "Replenishment cost"
msgstr "Custo de Reposição"

#. module: product_replenishment_cost
#: model:ir.model.fields,help:product_replenishment_cost.field_product_product__replenishment_cost
msgid ""
"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."
msgstr ""
"O custo que deverá suportar para produzir ou adquirir os bens. Dependendo "
"dos módulos instalados, esse custo pode ser calculado com base em várias "
"informações, por exemplo, listas de materiais ou compras mais recentes. Por "
"pré definição, o custo de Reposição é igual ao Preço de custo."

#~ msgid "Product"
#~ msgstr "Produto"
Loading