how to change calendar in gantt for odoo to weekdays
How to assign task in saturday and sunday? as task options only general, business
what is general and business and night shift in bryntum?
How to assign task in saturday and sunday? as task options only general, business
what is general and business and night shift in bryntum?
Currently those two calendars are returned statically
{
"id": "general",
"name": "General",
"intervals": [
{
"recurrentStartDate": "on Sat at 0:00",
"recurrentEndDate": "on Mon at 0:00",
"isWorking": False
}
],
"expanded": True,
"children": [
{
"id": "business",
"name": "Business",
"hoursPerDay": 8,
"daysPerWeek": 5,
"daysPerMonth": 20,
"intervals": [
{
"recurrentStartDate": "every weekday at 12:00",
"recurrentEndDate": "every weekday at 13:00",
"isWorking": False
},
{
"recurrentStartDate": "every weekday at 17:00",
"recurrentEndDate": "every weekday at 08:00",
"isWorking": False
}
]
},
{
"id": "night",
"name": "Night shift",
"hoursPerDay": 8,
"daysPerWeek": 5,
"daysPerMonth": 20,
"intervals": [
{
"recurrentStartDate": "every weekday at 6:00",
"recurrentEndDate": "every weekday at 22:00",
"isWorking": False
}
]
}
]
}
We have a ticket to make the calendars manageable
https://github.com/bryntum/odoo-support/issues/1
how to support work for weekend, hope it us possible to have that feature?
also in the duration, we calculate as calendar days
please advice
Good point! I will add a new 24 hour calendar statically in the load meanwhile the calendar ticket is not resolved.
Removed the 5 days restriction on the General Calendar. Pushed to release 1.2.5.
Hi Terence,
is the 1.2.5 version already updated? checking just now https://apps.odoo.com/apps/modules/14.0/bryntum_gantt_enterprise/#
still downloading version 1.2.4
It is updated now, we were facing some issues updating code in Odoo's store.
Ok got it, thankss (y)
but it will better if calendar view still differentiate for the sat and sun, but in general calendar it can choose workday and weekend, it will more nicer to view
thanks btw
Agree. We will make it configurable.
I see that in 1.2.7 it is not possible anymore to have a normal working week calendar with 5 days (mon-fri) of 8 hours.
If I now add a task of 5 days duration in the 'general' calendar, then the weekends are counted as working days too (also for already existing tasks). This is not good, because we planned all tasks in working days and now our planning is completely messed up.
If I set the task to 'business' calendar, then suddenly 5 days duration means +/- 21 days on the gantt chart. This is probably due to a wrong calculation: the duration in days is multiplied by 24 to get hours and then spread over 8 hours per working day and 5 days per working week.
This is a mix of duration and effort.