\n";
+ }
+ }*/
+
// Other attributes
include DOL_DOCUMENT_ROOT . '/core/tpl/extrafields_view.tpl.php';
@@ -2392,6 +2413,25 @@ else
print "\n";
}
+ // Multicompany
+ // This is now done with hook formObjectOptions
+ /*
+ // TODO check if user not linked with the current entity before change entity (thirdparty, invoice, etc.) !!
+ if (! empty($conf->multicompany->enabled) && is_object($mc))
+ {
+ if (empty($conf->multicompany->transverse_mode) && $conf->entity == 1 && $user->admin && ! $user->entity)
+ {
+ print "
".'
'.$langs->trans("Entity").'
';
+ print "
".$mc->select_entities($object->entity, 'entity', '', 0, 1); // last parameter 1 means, show also a choice 0=>'all entities'
+ print "
\n";
+ }
+ else
+ {
+ print '';
+ }
+ }
+ */
+
// Other attributes
$parameters=array('colspan' => ' colspan="2"');
$reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$object,$action); // Note that $action and $object may have been modified by hook