Post by patriciopa »

Hello, we have just bought the module Gantt View PRO for Odoo v14 Enterprise: please check: SO2022/1801604

1) This is the most important thing: we really need to see the following columns in Gantt view for fast editing/viewing:

  • planned_hours
  • effective_hours
  • remaining_hours
  • tag_ids
    Is there a way we can configure this?

2) Can we configure specific "CALENDARS" (general, business, night shifts)?

3) Can we configure to show or not show columns BY DEFAULT ? (we hide some, but after F5 it shows them again).

4) Also, could you please send us examples on: "Gantt configuration object Jsons"?

5) Do you have any Manual for use and configuration?

6) What is Effort for?

Thank you so much !!


Post by Terence »

Hi,

1) This is the most important thing: we really need to see the following columns in Gantt view for fast editing/viewing:

We have some tickets open. There is currently no mapping to planned-, effective- and remaining hours and also no mapping for tag_ids. We are thinking to make this configurable in the settings page.

https://github.com/bryntum/odoo-support/issues/48
https://github.com/bryntum/odoo-support/issues/47

2) Can we configure specific "CALENDARS" (general, business, night shifts)?

We have a ticket for this. Will be on the next iteration, within two weeks.

https://github.com/bryntum/odoo-support/issues/1

3) Can we configure to show or not show columns BY DEFAULT ? (we hide some, but after F5 it shows them again).

The settings of the gantt view is stored in a cookie. That is why F5 shows them again. It is possible to show or hide in the settings pane.

This is the current json config applied. you can remove or set 'hide: true' on any column.

{
    dependencyIdField : "wbsCode",

resourceImageFolderPath : "users/",

loadMask : false,

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' },
    {
        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' }
],

subGridConfigs: {
    locked: {
        flex : 3
    },
    normal: {
        flex : 4
    }
},

columnLines : false,

features: {

    taskEdit      : {
        items: {
            generalTab: {
                items: {
                    startDate : {
                        type      : 'datetime',
                        timeField : {
                            format : 'HH:mm'
                        },
                        flex : '1 0 100%',
                        cls  : 'start-date-edit'
                    },
                    endDate : {
                        type   : 'datetime',
                        timeField : {
                            format : 'HH:mm'
                        },
                        flex   : '1 0 100%'
                    }
                }
            }
        }
    },

    taskMenu: {
        items: {
            add    : {
                menu: {
                    addTaskAbove: false,
                    addTaskBelow: false,
                    successor   : false,
                    predecessor : false
                }
            },
            indent : false,
            outdent: false
        }
    },

    rollups       : {
        disabled: true
    },
    progressLine : {
        disabled: true
    },
    filter       : true,
    dependencyEdit : true,
    
    mspExport : {
        filename : 'Gantt MSP Export'
    },
    timeRanges : {
        showCurrentTimeLine: true
    },
    labels : {
        left: {
            field : "name",
            editor: {
                type: "textfield"
            }
        }
    }
}
}

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

Everything in the view is configurable, but the python controller and models are not (see your questions above). E.g. in case you add a new column and mapping you possible need to adapt the controller to support it. So you you can adapt anything but there is no guarantee it will work with the backend model and controller. But you could adapt that too in the source yourself too.

4) Also, could you please send us examples on: "Gantt configuration object Jsons"?

See above

5) Do you have any Manual for use and configuration?

See above

6) What is Effort for?

https://www.bryntum.com/docs/gantt/api/Gantt/model/TaskModel#field-effort
https://www.bryntum.com/docs/gantt/api/Gantt/column/EffortColumn
https://www.bryntum.com/docs/gantt/api/Gantt/model/TaskModel#field-effortDriven

Is calculated for parent tasks and can be calculated based on scheduling mode
https://www.bryntum.com/docs/gantt/api/Gantt/model/TaskModel#field-schedulingMode


Post Reply