When you declare a new tab, you can only set a string that is the
permission to show tab or not.
This condition can be a dynamic variable. For example
"$user->rights->othermodule->read"
However to show or not, i don't think there is solution for the moment.
With version dev i commited, you can add into your descriptor a line to
remove a tab according to a condition.
Syntax to remove a tab is into the descriptor file
$this->tabs = array('objecttype:-tabname':NU:conditiontoremove));
for "conditiontoremove", you can use a variable that is defined
globally. For example $conf->global->XXX
Le 29/11/2012 05:19, Manuel Muñoz a écrit :
> maybe this has been asked before:
>
> how can i add tabs dynamically to a core object? i would like to
> fill'em with data from a table of the core.
> is there a way to add them without restarting the module?
>
> thank you very much, all your help is very apreciated
>
> Manuel Munoz
> ICON
>
>
> _______________________________________________
> Dolibarr-dev mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/dolibarr-dev
--
Eldy (Laurent Destailleur).
EMail: [email protected]
Web: http://www.destailleur.fr
Dolibarr (Project leader): http://www.dolibarr.org
To make a donation for Dolibarr project via Paypal: [email protected]
AWStats (Author) : http://awstats.sourceforge.net
To make a donation for AWStats project via Paypal: [email protected]
AWBot (Author) : http://awbot.sourceforge.net
CVSChangeLogBuilder (Author) : http://cvschangelogb.sourceforge.net
_______________________________________________
Dolibarr-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev