Calendar Bug in Chrome and IE11
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Web (MOVED TO GITHUB) |
New
|
Undecided
|
Unassigned |
Bug Description
Platform: Windows, Ubuntu
OpenERP Version: 7.0
Browser: Chrome Version 34.0.1847.131, IE 11
Produce Error as Following:
1. Modul hr_holidays is needed
2. Human Resources->Leave Requests
3. Drag the duration of your holiday in Calendar
4. A leave request form appears with wrong end date and wrong duration. Behind this window is an other on with the correct values.
5. If you click on close you see the second window with the correct values.
we found the with commenting out these lines:
web/addons/
/*
if (!self.
var end_date = new Date(start_date);
});
}
});
*/
it works fine. We don`t know why this hack is need and a bit afraid of side effects coursed by commenting this out. Is this a known issue? In trunk everthing has changed.
description: | updated |
summary: |
- Calendar Bug in Chrome + Calendar Bug in Chrome and IE11 |
I have the same problem and your suggestion fixes the bug partially.
'onEmptyClick' is responsible for handling click event on empty box, while 'onBeforeLightbox' (the one right below it) handles drag event. Commenting 'onEmptyClick' event binding prevents the holiday form from opening if you click on an empty box.
I found a possible fix, but it involves upgrading dhtmlxScheduler to the latest version (4.0) and add the following line to web_calendar/ static/ src/js/ calendar. js:231
web/addons/
var index = self.dataset.
if (index !== null) {
} else {
}
return false;
});
However, I am not sure if this will introduce any regression. But it seems to work fine on my Chrome and FF.