Post by emilie »

Hi,
I use https://apps.odoo.com/apps/modules/15.0/bryntum_gantt_enterprise/ in Odoo 15 and I need to hide "CREATE" button in Toolbar :

Odoo-Tâches.png
Odoo-Tâches.png (21.54 KiB) Viewed 1355 times

Can I use the Gantt configuration object attribute and how ? or have to develop to do this customization ?
Thank you
Emilie


Post by Terence »

Hi Emilie, currently the toolbar for the Odoo module is not fully configurable.

However, there is a configurable setting tbar which you can set in the gantt configuration settings panel, but then you will loose all other logic in the current toolbar.

If you describe your requirements I can make a ticket to make some settings in the toolbar configurable. I think that would be a nice feature request.


Post by emilie »

Hi Terrence,
I want to delete/hide or disable the create button in Toolbar through the configuration field, as I can do it in the features block for the TaskEdit like this:

taskEdit      : {
      editorConfig : {
            bbar : {
                // Remove delete button
                items : {
                    deleteButton : false
                }
            },
        }
 }

Best regards,
Emilie


Post by Terence »


Post by emilie »

Hi,
how can I use the evolution ?
I download the last version and I add a block in first level configuration ?
I tried this but it's not working :

{
  tbar: {
    items: {
      addTaskButton: false
    }
}

Post by Terence »

The items are configured in an array. Bit hard to override, Maybe we should change that.

But you can use the paint event and get the button from the widgetmap. Like;

{
  tbar: {
    onPaint: ({source}) => {
		source.widgetMap.addTaskButton.hidden = true;
	}
 }
}

Post by emilie »

Thank you very much, it works very well.


Post Reply