Make a tab invisible

Hello,

I would like to make invisible a tab already present in the project module. So I created an extension of the module, and put the extends tag with a target="/" and hidden=« true » but not work.

 <extend target="/">
    	<replace>
        <panel title="Wiki" name="wikiPanel" hidden="true">
          <panel-related name="wikiListPanel" field="wikiList" colSpan="12"
            form-view="wiki-form" grid-view="wiki-grid-incl-project" />
        </panel>

          <panel title="Configurations" name="configurationsPanel" hidden="true">
		        <field if="__config__.app.isApp('employee')" if-module="axelor-human-resource"
		          name="productSet" colSpan="12" widget="TagSelect" canEdit="false"
		          domain="self.isActivity = true AND self.dtype = 'Product'"
		          form-view="product-activity-form" grid-view="product-activity-grid"/>
		        <field name="projectTaskCategorySet" colSpan="12" widget="TagSelect"/>
		        <field name="projectFolderSet" colSpan="12" widget="TagSelect"/>
		        <field name="excludeTimesheetEditor" if-module="axelor-human-resource"/>
		        <field name="childProjectList" hidden="true"/>
		        <field name="sequence" hidden="true"/>
		        <field name="excludePlanning" if-module="axelor-business-project" showIf="isProject"/>
		        <field name="imputable" colSpan="4" widget="boolean-switch"
		          if="__config__.app.isApp('employee')" if-module="axelor-human-resource"/>
		          
		        <button onClick="" name="test" title="bouton test !"/>
      	</panel>
      </replace>
    
    </extend>

Can anyone help me? Thank you

I think target="/" is wrong, you should use this to add the hidden attribute which do the same.

<extend target="//panel[@name='wikiPanel']">
<attribute name="hidden" value"true" />
</extend>
2 « J'aime »

Ce sujet a été automatiquement fermé après 30 jours. Aucune réponse n’est permise dorénavant.