From 26f2b36684618b8dd61943ff024631b5fd87b7f6 Mon Sep 17 00:00:00 2001 From: les-adhoc Date: Wed, 22 Jul 2026 13:53:23 +0000 Subject: [PATCH] [FIX] product_replenishment_cost: correct misleading update wizard message The "Update Accounting Cost from Replenishment Cost" wizard stated the action only applied to products with the "Standard Price" costing method. However, _update_cost_from_replenishment_cost() overwrites standard_price for products of any costing method (it only filters replenishment_cost != 0), as reproduced on an AVCO category where the cost went from 0 to a non-zero value on confirm. The action itself is intentional (e.g. currency-based valuation), so only the message is corrected: it no longer restricts the scope to the "Standard Price" costing method. Source terms re-exported (.pot). --- product_replenishment_cost/__manifest__.py | 2 +- .../i18n/product_replenishment_cost.pot | 8 ++++---- ...roduct_update_from_replenishment_cost_wizard_views.xml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/product_replenishment_cost/__manifest__.py b/product_replenishment_cost/__manifest__.py index 2b4997590..1f343942b 100644 --- a/product_replenishment_cost/__manifest__.py +++ b/product_replenishment_cost/__manifest__.py @@ -1,6 +1,6 @@ { "name": "Replenishment Cost", - "version": "19.0.1.2.0", + "version": "19.0.1.3.0", "author": "ADHOC SA, Odoo Community Association (OCA)", "license": "AGPL-3", "category": "Products", diff --git a/product_replenishment_cost/i18n/product_replenishment_cost.pot b/product_replenishment_cost/i18n/product_replenishment_cost.pot index 605eabeb5..e4cf086cc 100644 --- a/product_replenishment_cost/i18n/product_replenishment_cost.pot +++ b/product_replenishment_cost/i18n/product_replenishment_cost.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 19.0+e\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2026-04-27 15:00+0000\n" -"PO-Revision-Date: 2026-04-27 15:00+0000\n" +"POT-Creation-Date: 2026-07-22 14:00+0000\n" +"PO-Revision-Date: 2026-07-22 14:00+0000\n" "Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -427,8 +427,8 @@ msgstr "" #. module: product_replenishment_cost #: model_terms:ir.ui.view,arch_db:product_replenishment_cost.view_update_from_replenishment_cost_wizard_form msgid "" -"This will apply to all the selected products across company with costing " -"method \"Standard Price\" and with Replenishment Cost different from 0." +"This will apply to all the selected products across company with a " +"Replenishment Cost different from 0." msgstr "" #. module: product_replenishment_cost diff --git a/product_replenishment_cost/wizards/product_update_from_replenishment_cost_wizard_views.xml b/product_replenishment_cost/wizards/product_update_from_replenishment_cost_wizard_views.xml index 617a9e74a..cd28f4f14 100644 --- a/product_replenishment_cost/wizards/product_update_from_replenishment_cost_wizard_views.xml +++ b/product_replenishment_cost/wizards/product_update_from_replenishment_cost_wizard_views.xml @@ -6,7 +6,7 @@ form
- This will apply to all the selected products across company with costing method "Standard Price" and with Replenishment Cost different from 0. + This will apply to all the selected products across company with a Replenishment Cost different from 0.