Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
11722 Widoki

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?

Awatar
Odrzuć

Thank you.Yes it is working fine.

Najlepsza odpowiedź

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:

setDefaults({

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

Awatar
Odrzuć

is there any solution for odoo11

Yes, we do.

On Sat, 13 Jan 2018 at 12:26 PM, Shivam <shivam.dudhat@gmail.com> wrote:

is there any solution for odoo11

--
Shivam


Sent by Odoo S.A. using Odoo.

--

Powiązane posty Odpowiedzi Widoki Czynność
1
lip 18
4089
4
sty 17
4676
0
cze 17
3641
0
lis 16
3490