diff --git a/htdocs/product/stock/product.php b/htdocs/product/stock/product.php
index c53454f0fc3..551bfd5f9d0 100644
--- a/htdocs/product/stock/product.php
+++ b/htdocs/product/stock/product.php
@@ -649,15 +649,19 @@ if ($id > 0 || $ref) {
$textdesc = $langs->trans("CostPriceDescription");
$textdesc .= "
".$langs->trans("CostPriceUsage");
$text = $form->textwithpicto($langs->trans("CostPrice"), $textdesc, 1, 'help', '');
- $costprice = $object->cost_price;
if (!$usercancreadprice) {
- $costprice = '';
+ print $form->editfieldkey($text, 'cost_price', '', $object, 0, 'amount:6');
+ print '