Hi,
I want to add custom events to the calendar module, but I'm
having hard time to understand how odoo js framework works. How I'm
supposed to extend CalendarModel ?
I created the following file my_module/static/src/js/views/calendar/my_calendar_model.and I try to show a simple alert
odoo.define('my_module.CalendarModel', function (require) {
"use strict"
var CalendarModel = require('web.CalendarModel')
return CalendarModel.extend({
/**
* @override
*/
init: function () {
this._super.apply(this, arguments)
alert('test from my module')
}
})
});
The file is loaded but nothing happen.
Any clue about this ?
Regards