Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
10322 มุมมอง

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.

ผู้เขียน คำตอบที่ดีที่สุด

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

ผู้เขียน

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

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

คำตอบที่ดีที่สุด

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.

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

That's ok thanks !

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

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

ผู้เขียน

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
How to disable menus for specific users? แก้ไขแล้ว
1
ธ.ค. 23
26456
1
มี.ค. 15
6592
How can I activate the developer mode? แก้ไขแล้ว
1
เม.ย. 23
50698
How to hide the left sidebar? แก้ไขแล้ว
10
มี.ค. 16
16589
1
มี.ค. 15
9549