Add project_task type to Categorie class 2/3 (#36152)

This commit is contained in:
Charlène Benke
2025-11-07 18:46:42 +01:00
committed by GitHub
parent cad3574179
commit a8384403d3

View File

@@ -71,6 +71,7 @@ class Categorie extends CommonObject
const TYPE_SUPPLIER_INVOICE = 'supplier_invoice';
const TYPE_SUPPLIER_PROPOSAL = 'supplier_proposal';
const TYPE_PROPOSAL = 'propal';
const TYPE_PROJECT_TASK = 'project_task';
/**
@@ -104,6 +105,7 @@ class Categorie extends CommonObject
'supplier_invoice' => 21,
'supplier_proposal' => 22,
'propal' => 23,
'project_task' => 24,
);
/**
@@ -131,7 +133,10 @@ class Categorie extends CommonObject
16 => 'order',
17 => 'invoice',
20 => 'supplier_order',
21 => 'supplier_invoice'
21 => 'supplier_invoice',
22 => 'supplier_proposal',
23 => 'propal',
24 => 'project_task'
);
*/
@@ -178,7 +183,8 @@ class Categorie extends CommonObject
'supplier_order' => 'CommandeFournisseur',
'supplier_invoice' => 'FactureFournisseur',
'supplier_proposal' => 'SupplierProposal',
'propal' => 'Propal'
'propal' => 'Propal',
'project_task' => 'Task',
);
/**
@@ -206,7 +212,8 @@ class Categorie extends CommonObject
'supplier_order' => 'SuppliersOrders',
'supplier_invoice' => 'SuppliersInvoices',
'propal' => 'Proposals',
'supplier_proposal' => 'SupplierProposals'
'supplier_proposal' => 'SupplierProposals',
'project_task' => 'Tasks'
);
/**
@@ -227,6 +234,7 @@ class Categorie extends CommonObject
'invoice' => 'facture',
'supplier_order' => 'commande_fournisseur',
'supplier_invoice' => 'facture_fourn',
'project_task' => 'projet_task'
);
/**
@@ -295,6 +303,7 @@ class Categorie extends CommonObject
* @see Categorie::TYPE_INVOICE
* @see Categorie::TYPE_SUPPLIER_ORDER
* @see Categorie::TYPE_SUPPLIER_INVOICE
* @see Categorie::TYPE_PROJECT_TASK
*/
public $type;
@@ -766,6 +775,7 @@ class Categorie extends CommonObject
'categorie_user' => 'fk_categorie',
'categorie_product' => 'fk_categorie',
'categorie_project' => 'fk_categorie',
'categorie_project_task' => 'fk_categorie',
'categorie_societe' => 'fk_categorie',
'categorie_ticket' => array('field' => 'fk_categorie', 'enabled' => isModEnabled('ticket')),
'categorie_warehouse' => 'fk_categorie',