31,003
edits
| Line 120: | Line 120: | ||
'objecttype:+tabname2:Title2:@mymodule:/mymodule/mynewtab2.php?id=__ID__', // To add another new tab identified by code tabname2 | 'objecttype:+tabname2:Title2:@mymodule:/mymodule/mynewtab2.php?id=__ID__', // To add another new tab identified by code tabname2 | ||
'objecttype:-tabname'); // To remove an existing tab identified by code tabname | 'objecttype:-tabname'); // To remove an existing tab identified by code tabname | ||
</source> | </source> | ||
Le tableau doit contenir une liste de | Le tableau doit contenir une liste de chaîne, chaque chaîne représentant un nouvel onglet. | ||
Le format de la | Le format de la chaîne étant composée de 5 parties séparées par ":" | ||
* Partie 1: Le | * Partie 1: Le type d'élément (objecttype) dans lequel doit apparaître l'onglet qui est une valeur parmi celle-ci: | ||
** 'thirdparty' | ** 'thirdparty' to add a tab in third party view | ||
** 'intervention' | ** 'intervention' to add a tab in intervention view | ||
** ' | ** 'order_supplier' to add a tab in supplier order view | ||
** ' | ** 'invoice_supplier' to add a tab in supplier invoice view | ||
** 'invoice' | ** 'invoice' to add a tab in customer invoice view | ||
** 'order' | ** 'order' to add a tab in customer order view | ||
** 'product' | ** 'product' to add a tab in product view | ||
** 'propal' | ** 'stock' to add a tab in stock view | ||
** 'member' | ** 'propal' to add a tab in propal view | ||
** 'contract' | ** 'member' to add a tab in fundation member view | ||
** 'contract' to add a tab in contract view | |||
** 'user' to add a tab in user view | |||
** 'group' to add a tab in group view | |||
** 'contact' to add a tab in contact view | |||
** 'categories_x' to add a tab in category view (replace 'x' by type of category (0=product, 1=supplier, 2=customer, 3=member) | |||
* Partie 2: Nom de code pour l'onglet à ajouter (commence par +) ou à enlever (commence par -) | * Partie 2: Nom de code pour l'onglet à ajouter (commence par +) ou à enlever (commence par -) | ||
* Partie 3: Le titre de l'onglet. Cela peut être un libellé en dur ou mieux un code traduction présent dans un fichier lang. | * Partie 3: Le titre de l'onglet. Cela peut être un libellé en dur ou mieux un code traduction présent dans un fichier lang. | ||