Post by giost »

I have that question, when im using that config, it changes general calendar option too, i want to use that only for Business , how to do that.

regards


Post by giost »

can i use that config for only Business intervals?


Post by Terence »

You can specify working times on the calendars.

See: https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#field-hoursPerDay

hoursPerDay are used for calculating durations. You can set it to 24 and specify the working time on the calendar.

Here you find it in more detail: https://bryntum.com/products/gantt/docs/guide/Gantt/basics/calendars

Up in this topic you can read how to change the calendar config.


Post by giost »

In Odoo, calendar configuration object, i want to exclude weekdays, how to do that, i cant found out


Post by Terence »

You can exclude days by using intervals in the calendar

"calendars": {
    "rows": [
      {
        "id": "general",
        "name": "General",
        "intervals": [
          {
            "recurrentStartDate": "on Sat at 0:00",
            "recurrentEndDate": "on Mon at 0:00",
            "isWorking": false
          }
        ]
      }
    ]

Post Reply