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
[MIG] product_replenishment_cost: Migration to 16.0
  • Loading branch information
amarcosg authored and BhaveshHeliconia committed Dec 15, 2025
commit 341a4cdb93de1e7455d5eee9ee4434917d06e92e
2 changes: 1 addition & 1 deletion product_replenishment_cost/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"name": "Product Replenishment Cost",
"summary": "Provides an overridable method on product which compute"
"the Replenishment cost of a product",
"version": "12.0.1.0.1",
"version": "16.0.1.0.0",
"author": "Camptocamp,GRAP,Odoo Community Association (OCA)",
"license": "AGPL-3",
"category": "Products",
Expand Down
4 changes: 1 addition & 3 deletions product_replenishment_cost/models/product_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
from odoo import api, fields
from odoo.models import Model

import odoo.addons.decimal_precision as dp


class ProductProduct(Model):
_inherit = "product.product"
Expand All @@ -22,7 +20,7 @@ def _compute_replenishment_cost(self):
string="Replenishment cost",
compute="_compute_replenishment_cost",
store=True,
digits=dp.get_precision("Product Price"),
digits="Product Price",
help="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 "
Expand Down
9 changes: 5 additions & 4 deletions product_replenishment_cost/tests/test_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from openerp.tests.common import TransactionCase
from odoo.tests.common import TransactionCase


class TestModule(TransactionCase):
def setUp(self):
super(TestModule, self).setUp()
self.ProductProduct = self.env["product.product"]
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.ProductProduct = cls.env["product.product"]

# Test Section
def test_create_or_update(self):
Expand Down