Odoo Help


How to prevent edition of calendar view?

ui v7
Bonnet Denis
on 2/22/13, 12:25 PM 3,678 views

I want to have a "read-only" calendar but I don't find how to do.

How can stop the drag and drop interface of calendar view or something like this?

In file calendar.js there are 2 attributes :
scheduler.config.drag_resize = true;
scheduler.config.drag_create = true; but I don't know how to disallow event movement.

Bonnet Denis
on 2/25/13, 12:24 PM

Bonnet Denis

--Bonnet Denis--
| 5 6 8
St avé, France
--Bonnet Denis--

CEO/ODOO expert at Talyes.in

Bonnet Denis
On 2/27/13, 7:04 AM

After a week of work I've created a module that put the calendar view in a readonly mode if a "ReadOnly" attribute is set to calendar tag.

this is the branch:

bzr branch lp:~eirhylien/server-env-tools/readOnlyCalendar

Please put the code on Launchpad. I didn't try it yet, but maybe it solves a huge usability problem of the calendar. Currently, calendar entries can be changed accidently without any chance to repair the damage afterwards. See https://bugs.launchpad.net/openerp-web/+bug/1082017

on 3/25/13, 8:26 AM

I will, but I've never do that. Can you explain me how?

Bonnet Denis
on 3/25/13, 2:06 PM

It doesn't work. I still can drag and drop, and write method is raised...

on 4/23/15, 12:21 PM
Anne-Sylvie Burri
On 3/24/14, 11:40 AM

I've installed this module but can't find where to configure the readonly mode...

Someone could help me ?

Thanks in advance.


In the <calendar> tag, put a ReadOnly=1 attibute.

Bonnet Denis
on 3/24/14, 12:57 PM

Thanks for your answer. I've tried but the result is an XML error... do you have any idea of what is incorrect ?

J.-M. Burri - Bureau ing.-conseils informatique, Anne-Sylvie Burri
on 3/25/14, 5:35 AM

In module "base_calendar" file "crm_meeting_view". But the best is to create a new module to inherit this changement.

J.-M. Burri - Bureau ing.-conseils informatique, Anne-Sylvie Burri
on 3/25/14, 6:52 AM

This works fine when using Mozilla, but not working with Chrome. Can anyone suggest what I am missing?

on 3/25/14, 10:04 AM

I have not tested this module with Chrome, Only on Mozilla and IE

Bonnet Denis
on 3/25/14, 12:26 PM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 2/22/13, 12:25 PM
Seen: 3678 times
Last updated: 3/16/15, 8:10 AM