diff --git a/htdocs/bom/class/bom.class.php b/htdocs/bom/class/bom.class.php
index ecec1a56709..2dcaa0c0c6b 100644
--- a/htdocs/bom/class/bom.class.php
+++ b/htdocs/bom/class/bom.class.php
@@ -790,6 +790,7 @@ class BOM extends CommonObject
$label .= '
'.$langs->trans('Label').': '.$this->label;
}
if (!empty($this->fk_product)) {
+ dol_include_once('/product/class/product.class.php');
$product = new Product($db);
$resultFetch = $product->fetch($this->fk_product);
if ($resultFetch < 0) {
diff --git a/htdocs/mrp/index.php b/htdocs/mrp/index.php
index c4480f76ed0..d9ee0e39cc6 100644
--- a/htdocs/mrp/index.php
+++ b/htdocs/mrp/index.php
@@ -155,7 +155,7 @@ print '