Fix name of class Service (already used by APIs)

This commit is contained in:
Laurent Destailleur 2020-05-02 03:29:33 +02:00
parent 7c6dc930d2
commit 4606b9fd9f
2 changed files with 4 additions and 3 deletions

View File

@ -207,7 +207,7 @@ if (empty($user->socid) && empty($conf->global->MAIN_DISABLE_GLOBAL_BOXSTATS))
'suppliers' => 'Fournisseur', 'suppliers' => 'Fournisseur',
'contacts' => 'Contact', 'contacts' => 'Contact',
'products' => 'Product', 'products' => 'Product',
'services' => 'Service', 'services' => 'ProductService',
'proposals' => 'Propal', 'proposals' => 'Propal',
'orders' => 'Commande', 'orders' => 'Commande',
'invoices' => 'Facture', 'invoices' => 'Facture',

View File

@ -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'; public $picto = 'service';
} }