diff --git a/htdocs/index.php b/htdocs/index.php index 7fed7d75bb3..36aae1f25b8 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -207,7 +207,7 @@ if (empty($user->socid) && empty($conf->global->MAIN_DISABLE_GLOBAL_BOXSTATS)) 'suppliers' => 'Fournisseur', 'contacts' => 'Contact', 'products' => 'Product', - 'services' => 'Service', + 'services' => 'ProductService', 'proposals' => 'Propal', 'orders' => 'Commande', 'invoices' => 'Facture', diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index 8f2e0973ab3..0db9a411b19 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -5639,9 +5639,10 @@ class Product extends CommonObject /** - * Class to manage products or services + * Class to manage products or services. + * Do not use 'Service' as class name since it is already used by APIs. */ -class Service extends Product +class ProductService extends Product { public $picto = 'service'; }