Remove tab for supplier module does not work

Hello, my problem is that I can’t remove tabs for suppliers module. for both supplier orders and supplier invoices.

Let’s say I want to remove the Notes tab from the supplier orders:

$this->tabs[] = array('data'=>'order_supplier:-note');

did I forgot something? I can add or remove tabs for all other modules, but it doesn’t work for the supplier module.

I hope someone can help me
thanks
Marvin

I found the solution. there is an error in the documentation. which says that the object type is “order_supplier”. but it is “supplier_order”!

so the code looks like this:

$this->tabs[] = array('data'=>'supplier_order:-note');

if you want to find out the tab name or the object type, simply 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 tab names comes the object type.