Développement module: Difference between revisions

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
// where objecttype can be
// 'thirdparty'      to add a tab in third party view
// 'intervention'    to add a tab in intervention view
// 'supplier_order'  to add a tab in supplier order view
// 'supplier_invoice' to add a tab in supplier invoice view
// 'invoice'          to add a tab in customer invoice view
// 'order'            to add a tab in customer order view
// 'product'          to add a tab in product view
// 'propal'          to add a tab in propal view
// 'member'          to add a tab in foundation member view
// 'contract'        to add a tab in contract view
</source>
</source>


Le tableau doit contenir une liste de chaine, chaque chaine représentant un nouvel onglet.
Le tableau doit contenir une liste de chaîne, chaque chaîne représentant un nouvel onglet.
Le format de la chaine étant composée de 5 parties séparées par ":"
Le format de la chaîne étant composée de 5 parties séparées par ":"
* Partie 1: Le code entité dans lequel doit apparaitre l'onglet qui est une valeur parmi celle-ci:
* 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
** 'supplier_order'
** 'order_supplier' to add a tab in supplier order view
** 'supplier_invoice'
** '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.