I want to extend calendar view with a read-only field but I don't know how I can get this field in JS file.
I think I can use instance
var:
openerp.web_calendar = function(instance) {
var _t = instance.web._t,
_lt = instance.web._lt;
var QWeb = instance.web.qweb;
...
}
But I dont understand how it's working. If someone can help me.
Which field you want to make it readonly? or the calendar view ?
I want to set all the calendarView at ReadOnly. I create a module that do this. Anyway thanks for your answer.