Odoo Help

Welcome!

This community 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.

5

How to prevent edition of calendar view?

ui v7
By
Bonnet Denis
on 2/22/13, 12:25 PM 2,681 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
3

Bonnet Denis

--Bonnet Denis--
925
| 5 6 8
Vannes, France
--Bonnet Denis--

Engeneer at MGS Consulting Ouest at Vannes, FRANCE

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

Martin
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...

Yulybaseball
on 4/23/15, 12:21 PM
0
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.

JMB

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?

Nehal
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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

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