콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
4393 화면

How can I change default time (now it is from 8AM to 9AM) withint the leave request menu?

아바타
취소
작성자 베스트 답변

file location:

/usr/share/pyshared/openerp/addons/web_calendar/static/src/js/calendar.js

Code:

slow_create: function(event_id, event_obj) { var self = this; if (this.current_mode() === 'month') { event_obj['start_date'].addHours(8); if (event_obj._length === 1) { event_obj['end_date'] = new Date(event_obj['start_date']); event_obj['end_date'].addHours(1); } else { event_obj['end_date'].addHours(-4); } } [....]

 

I change:

event_obj['start_date'].addHours(8)

With:

event_obj['start_date'].addHours(7)

 

Now the default value is 7AM

아바타
취소