diff --git a/htdocs/admin/bom.php b/htdocs/admin/bom.php
index e7b1e4fc3d6..220110750a2 100644
--- a/htdocs/admin/bom.php
+++ b/htdocs/admin/bom.php
@@ -315,6 +315,9 @@ foreach ($dirmodels as $reldir)
print "
\n";
+if ($conf->global->MAIN_FEATURES_LEVEL >= 2)
+{
+
/*
* Document templates generators
*/
@@ -532,6 +535,7 @@ print '';
print '';
print '
';
+}
/*
* Notifications
diff --git a/htdocs/core/modules/bom/mod_bom_advanced.php b/htdocs/core/modules/bom/mod_bom_advanced.php
index 373fd5ffa8b..e37ce3d9840 100644
--- a/htdocs/core/modules/bom/mod_bom_advanced.php
+++ b/htdocs/core/modules/bom/mod_bom_advanced.php
@@ -68,7 +68,7 @@ class mod_bom_advanced extends ModeleNumRefboms
$texte.= '';
$texte.= '';
$texte.= '';
- $texte.= '