Post by Terence »

On global level most settings can be set in the gantt config object in the setting panel (under admin). Some features (like baselines) can not be overriden with the config because they contain some additional logic.

See below the config object. You can set more properties as described in the documentation. But some will require some backend logic in Odoo.

https://bryntum.com/products/gantt/docs/api/Gantt/view/Gantt

{
  columns: [
    {
      type: "wbs",
      id: 'br_column_1'
    },
    {
      type: "name",
      width: 250,
      id: 'br_column_2'
    },
    {
      type: "startdate",
      id: 'br_column_3'
    },
    {
      type: "duration",
      id: 'br_column_4_1'
    },
    {
      type: "resourceassignment",
      width: 120,
      showAvatars: false,
      id: 'br_column_5'
    },
    {
      type: "percentdone",
      showCircle: true,
      width: 70,
      id: 'br_column_6'
    },
    {
      type: "predecessor",
      width: 112,
      id: 'br_column_7'
    },
    {
      type: "successor",
      width: 112,
      id: 'br_column_8'
    },
    {
      type: "schedulingmodecolumn",
      id: 'br_column_9'
    },
    {
      type: "calendar",
      id: 'br_column_10'
    },
    {
      type: "constrainttype",
      id: 'br_column_11'
    },
    {
      type: "constraintdate",
      id: 'br_column_12'
    },
    {
      type: "addnew",
      id: 'br_column_13'
    }
  ],
  features: {
    taskMenu: {
      items: {
        // splitTask : false,
        add: {
          menu: {
            addTaskAbove: false,
            addTaskBelow: false,
            successor: false,
            predecessor: false
          }
        }
      }
    },
    rollups: {
      disabled: true
    },
    progressLine: {
      disabled: true
    },
    filter: true,
    dependencyEdit: true,
    mspExport: {
      filename: 'Gantt MSP Export',
      disabled: true
    },
    timeRanges: {
      showCurrentTimeLine: true
    },
    labels: {
      left: {
        field: "name",
        editor: {
          type: "textfield"
        }
      }
    }
  }
}

You can set rowHeight as well in the object config. To make it possible to apply a config on 'complex' features it might take 4-8 hours of work.

On user level we currently have a statemanager based on cookies. It will remember some column settings like width/visible/hidden. I do not think it supports the order of columns and ui settings like rowHeight. We could take a look into this path to make it support more ui setting with the statemanager. That requires maybe 8-16 hours of work.

If we need to store user settings in the backend it would require more time. I recommend (if you are a developer or have one on board) to purchase a Gantt developer license.
https://bryntum.com/store/gantt/

Then you can try/implement some modifications in the code (like the configuration) yourself and recompile the bundle. You can ask sales@bryntum.com for more details on the Odoo license.


Post by gabs »

Terence, Thanks for suggested solution regarding global settings, it helped much.
About saving user settings, we are ready to sponsor this feature with up to $200 if it will be possible to implement this change within nearest two weeks. We think it will be a good additional feature for your product and will add more value to Gantt Chart.


Post by mats »

@gabs If you're interested in the feature sponsorship option - please email sales [at] bryntum and we can continue the conversation.


Post by gabs »

Hello, I have emailed to the sales looking forward for your reply.


Post Reply