# Tab system: New tab does not appear in the expected place

**URL:** <https://www.dolibarr.org/forum/t/tab-system-new-tab-does-not-appear-in-the-expected-place/22776>\
**Category:** Developing for Dolibarr\
**Created:** [September 13, 2022, 1:39pm UTC](https://www.dolibarr.org/forum/t/tab-system-new-tab-does-not-appear-in-the-expected-place/22776 "2022-09-13T13:39:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Service-Basix](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/s/c67d28/32.png) [@Service-Basix](https://www.dolibarr.org/forum/u/Service-Basix)\
**Post date:** [September 13, 2022, 1:39pm UTC](https://www.dolibarr.org/forum/t/tab-system-new-tab-does-not-appear-in-the-expected-place/22776/1 "2022-09-13T13:39:13Z")

</div>

Hello,

I have a problem with the tab system in Dolibarr.  
If I want to insert a new tab in the production orders module (MRP), it always appears in the MRP module settings (see screenshot mrp-module-settings.png) and not where it should actually be (see screenshot mrp-module.png):

```auto
$this->tabs = array(
            'mrp:+element:ProjectOverview:@mymodule:/custom/mymodule/projet/element.php?id= __ID__'
        );

```

Am I perhaps making a mistake? With all other modules I can insert or replace a tab at the desired position. Only with the MRP module is the tab displayed in the settings. And not in the actual module.  
Can someone help me?

Thanks  
Marvin

 ![mrp-module](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/6/6ee11098acc3da7579d2f48c64518293413d140a.png)

---

<div class="post-metadata">

**Author:** ![milenmk](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/milenmk/32/4128_2.png) [@milenmk](https://www.dolibarr.org/forum/u/milenmk)\
**Post date:** [September 13, 2022, 2:11pm UTC](https://www.dolibarr.org/forum/t/tab-system-new-tab-does-not-appear-in-the-expected-place/22776/2 "2022-09-13T14:11:40Z")

</div>

"+element"should be the name of your custom module.

For example, if the module name is somemodule, the above code should be:

```auto
$this->tabs[] = array('data' => 'mrp:+somemodule:String for translation of the tab title:somemodule@somemodule:$user->rights->mrp->write:/somemodule/path_to_php_file?id= __ID__');  

```

---

<div class="post-metadata">

**Author:** ![Service-Basix](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/s/c67d28/32.png) [@Service-Basix](https://www.dolibarr.org/forum/u/Service-Basix)\
**Post date:** [September 14, 2022, 1:04pm UTC](https://www.dolibarr.org/forum/t/tab-system-new-tab-does-not-appear-in-the-expected-place/22776/3 "2022-09-14T13:04:47Z")

</div>

Thanks for your answer. but the documentation says that the “+element” is the name of the tab to add and not the module name.

Adding a new tab is possible. it’s just added in the wrong place.

When I add a tab, it is not added in the MRP module but in the MRP module settings.

---

<div class="post-metadata">

**Author:** ![Service-Basix](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/s/c67d28/32.png) [@Service-Basix](https://www.dolibarr.org/forum/u/Service-Basix)\
**Post date:** [September 15, 2022, 12:36pm UTC](https://www.dolibarr.org/forum/t/tab-system-new-tab-does-not-appear-in-the-expected-place/22776/4 "2022-09-15T12:36:05Z")

</div>

I have found the solution. The object type of the production orders is not mrp but mo@mrp.

so the code looks like this:

```auto
$this->tabs[] = array('data'=>'mo@mrp:-note');

```

anyone who wants to find out the tabname or objecttype simply has to search for “complete\_head\_from\_modules” in the htdocs folder. there you will find in all the lib files the tab names after "$head[$h][2] = " and after the tabnames comes the object type.
