diff --git a/htdocs/product/card.php b/htdocs/product/card.php
index 818b2621fe9..edd309b9c15 100644
--- a/htdocs/product/card.php
+++ b/htdocs/product/card.php
@@ -68,7 +68,7 @@ if (!empty($conf->accounting->enabled)) {
require_once DOL_DOCUMENT_ROOT.'/accountancy/class/accountingaccount.class.php';
}
if (!empty($conf->bom->enabled)) {
- require_once DOL_DOCUMENT_ROOT.'/bom/class/bom.class.php';
+ require_once DOL_DOCUMENT_ROOT.'/bom/class/bom.class.php';
}
// Load translation files required by the page
@@ -2280,16 +2280,6 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
print '';
}
- if ($conf->bom->enabled) {
- print '
| '.$form->textwithpicto($langs->trans("DefaultBOM"), $langs->trans("DefaultBOMDesc")).' | ';
- if ($object->fk_default_bom) {
- $bom_static = new BOM($db);
- $bom_static->fetch($object->fk_default_bom);
- print $bom_static->getNomUrl(1);
- }
- print ' |
';
- }
-
// Brut Weight
if (empty($conf->global->PRODUCT_DISABLE_WEIGHT)) {
print '| '.$langs->trans("Weight").' | ';
@@ -2380,6 +2370,17 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
print ' |
| '.$langs->trans("QCFrequency").' | '.$object->qc_frequency.' |
';
}
+ if (!$object->isService() && !empty($conf->bom->enabled)) {
+ print '| '.$form->textwithpicto($langs->trans("DefaultBOM"), $langs->trans("DefaultBOMDesc")).' | ';
+ if ($object->fk_default_bom) {
+ $bom_static = new BOM($db);
+ $bom_static->fetch($object->fk_default_bom);
+ print $bom_static->getNomUrl(1);
+ }
+ print ' |
';
+ }
+
+
// Other attributes
$parameters = array();
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_view.tpl.php';