تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
3556 أدوات العرض

How to set min-time and max-time in calendar time view using js

الصورة الرمزية
إهمال
أفضل إجابة

https://www.odoo.com/forum/help-1/question/how-to-modify-calendarview-mintime-maxtime-slotduration-152711#answer-152749

الصورة الرمزية
إهمال
أفضل إجابة
odoo.define('your_module', function (require) {
"use strict";

var CalendarModel = require('web.CalendarModel');

CalendarModel.include({
_getFullCalendarOptions: function () {
var res = this._super.apply(this, arguments);
return _.extend(res, {
minTime: '08:00:00',
maxTime: '22:00:00',

});
},
});


الصورة الرمزية
إهمال