Hello,
I use Gantt for Odoo in 15 version.
I need to add a personnal field to my task values in gantt grid.
I edit controller.py in the Odoo module, to add it in the task list in this function :
@http.route('/bryntum_gantt/load', type='http', auth='user')
def bryntum_gantt_load(self, project_ids=None, only_projects=False, **kw):
[...]
tasks = [
{
"id": self.task_id_template % task.id,
"name": '[' + task.hierarchical_level + '] ' + task.name,
"hierarchicalLevel": task.hierarchical_level,
[...]
In bryntum_gantt_config value, I define my column list :
columns: [
{
type: "sequence",
id: 'br_column_1'
},
{
field: "hierarchicalLevel",
text: "Niveau hiérarchique",
id: 'br_column_11'
},
{
type: "name",
text: "Nom",
width: 250,
id: 'br_column_2',
editor: false
}
]
The request /bryntum_gantt/load? correctly return values with the new field but my grid is always empty :
How can I display the values of my field in a dedicated column? Is the TaskStore properly populated with its changes?