diff --git a/htdocs/core/class/html.formmargin.class.php b/htdocs/core/class/html.formmargin.class.php
index 345a94b3a62..1f091fc81fd 100644
--- a/htdocs/core/class/html.formmargin.class.php
+++ b/htdocs/core/class/html.formmargin.class.php
@@ -21,6 +21,8 @@
* \brief Fichier de la classe des fonctions predefinie de composants html autre
*/
+require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
+
/**
* Classe permettant la generation de composants html autre