How to set min-time and max-time in calendar time view using js
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
2
Replies
3171
Views
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',
});
},
});
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up