diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php
index 2f36fd59035..f2c59f95925 100644
--- a/htdocs/product/class/product.class.php
+++ b/htdocs/product/class/product.class.php
@@ -3514,6 +3514,7 @@ class Product extends CommonObject
}
if (! empty($conf->accounting->enabled) && $this->status_buy)
{
+ include_once DOL_DOCUMENT_ROOT.'/core/lib/accounting.lib.php';
$label.= '
' . $langs->trans('ProductAccountancyBuyCode') . ': '. length_accountg($this->accountancy_code_buy);
}
if (! empty($this->entity))