Page 1 of 3

how to change calendar in gantt for odoo to weekdays

Posted: Fri Sep 24, 2021 7:46 am
by visiniaga

How to assign task in saturday and sunday? as task options only general, business
what is general and business and night shift in bryntum?


Re: how to change calendar in gantt for odoo to weekdays

Posted: Fri Sep 24, 2021 10:17 am
by Terence

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


Re: how to change calendar in gantt for odoo to weekdays

Posted: Fri Sep 24, 2021 11:37 am
by visiniaga

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


Re: how to change calendar in gantt for odoo to weekdays

Posted: Fri Sep 24, 2021 11:43 am
by Terence

Good point! I will add a new 24 hour calendar statically in the load meanwhile the calendar ticket is not resolved.


Re: how to change calendar in gantt for odoo to weekdays

Posted: Fri Sep 24, 2021 4:38 pm
by Terence

Removed the 5 days restriction on the General Calendar. Pushed to release 1.2.5.


Re: how to change calendar in gantt for odoo to weekdays

Posted: Mon Sep 27, 2021 5:37 am
by visiniaga

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


Re: how to change calendar in gantt for odoo to weekdays

Posted: Mon Sep 27, 2021 8:53 am
by Terence

It is updated now, we were facing some issues updating code in Odoo's store.


Re: how to change calendar in gantt for odoo to weekdays

Posted: Mon Sep 27, 2021 10:30 am
by visiniaga

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


Re: how to change calendar in gantt for odoo to weekdays

Posted: Mon Sep 27, 2021 11:39 am
by Terence

Agree. We will make it configurable.


Re: how to change calendar in gantt for odoo to weekdays

Posted: Tue Nov 16, 2021 10:52 pm
by janverstr

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.