Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


How to show chosen hours (only business/working hours) in calendar(s)

George Rodopoulos
on 2/3/15, 5:51 PM 859 views

Every calendar view in odoo shows by default 24 hours for every day and the result is that you usually have to scroll to see what you really want.

How can I hide the hours that the company is not working?

Nilesh Galoriya
On 1/5/16, 7:37 AM

for this you have to inherit the fullcalendar.js file which is in web_calendar module.

for the reference please refer this file addons-->web_calendar-->static-->lib-->fullcalendar-->js-->fullcalendar.js

and do the required changes in following code:


allDaySlot: true,

allDayText: 'all-day',

firstHour: 6,

slotMinutes: 30,

defaultEventMinutes: 120,

axisFormat: 'h(:mm)tt',

timeFormat: {

agenda: 'h:mm{ - h:mm}'


dragOpacity: {

agenda: .5


minTime: 0,

maxTime: 24,

slotEventOverlap: true


do change in mintime and maxtime as per your requirement.

hope this will help

Rupali Palshikar
On 1/6/16, 4:22 AM

Thank you.Yes it is working fine.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)


Asked: 2/3/15, 5:51 PM
Seen: 859 times
Last updated: 2/18/16, 2:45 PM