Post by yousifamer »

Hello,

We want to use two calendars in the system
General - where all days are work days - this was working by default correctly
Business - 6 Day work week where Friday is Holiday

I Tried Modifying the Calender Configuration in Both the Settings and project_project.py to the following

                {
                    "id": "general",
                    "name": "General",
                    "intervals": [],
                    "expanded": True,
                    "children": [
                        {
                            "id": "business",
                            "name": "Business",
                            "hoursPerDay": 8,
                            "daysPerWeek": 6,
                            "daysPerMonth": 20,
                            "intervals": [
                                {
                                    "recurrentStartDate": "on Sat, Sun, Mon, Tue, Wed, Thu at 16:00",
                                    "recurrentEndDate": "on Sat, Sun, Mon, Tue, Wed, Thu at 08:00",
                                    "isWorking": False
                                }
                            ]
                        }
                    ]
                }
            ]

but whenever we switch the calendar to business it is taking instead of 10 day it takes 43 days or something like that, i tried using hoursPerDay: 24 as well and the issue did not change

I am not sure where the configuration is wrong, if you can please provide help

note the version we are using is 2.0.3 and we can't change because we have other custom modules with dependancy on the gantt module. and updating breaks those modules


Post by mats »

                    "expanded": True,

This should be "true", not "True" to work. Does that fix it?


Post Reply