The web_calendar/static/src/js/web_calendar.js file defines a function in the following manner:
openerp.web_calendar = function(instance) {
var _t = instance.web._t,
_lt = instance.web._lt,
QWeb = instance.web.qweb;
function get_class(name) {
return new instance.web.Registry({'tmp' : name}).get_object("tmp");
}
function get_fc_defaultOptions() { ...}
I want to extend the function get_fc_defaultOptions() . Can anyone help me with the JS definition to extend this? The code that I am trying looks like this, but it does not seem to get invoked:
openerp.my_web_calendar=function(instance){
var _t = instance.web._t,
_lt = instance.web._lt;
var QWeb = instance.web.qweb;
instance.my_web_calendar={};
function get_fc_defaultOptions() {
console.log("here"); ...... }
}