I want to disable drag and drop functionality in calendar view specifically in odoo14.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客戶關係
- e-Commerce
- 會計
- 庫存
- PoS
- Project
- MRP
此問題已被標幟
1
回覆
4114
瀏覽次數
Hi,
Go to: odoo/addons/web/static/lib/fullcalendar/interaction/main.js
from line 1015, you will see this:
dragging.emitter.on('pointerdown', this.handlePointerDown);
dragging.emitter.on('dragstart', this.handleDragStart);
dragging.emitter.on('dragmove', this.handleDragMove);
dragging.emitter.on('pointerup', this.handlePointerUp);
dragging.emitter.on('dragend', this.handleDragEnd);
put off instead of on for lines related to dragging, you will have this:
dragging.emitter.on('pointerdown', this.handlePointerDown);
dragging.emitter.on('dragstart', this.handleDragStart);
dragging.emitter.off('dragmove', this.handleDragMove);
dragging.emitter.on('pointerup', this.handlePointerUp);
dragging.emitter.on('dragend', this.handleDragEnd);
You will notice that Drag option isn't possible anymore in calendar view.
If you want to disable spreading out the record in calendar view, you will have to disable dragend too.
Hope this helps.
Hello Ibrahim,
Thank you for answer. Let me try this.
相關帖文 | 回覆 | 瀏覽次數 | 活動 | |
---|---|---|---|---|
|
1
2月 24
|
4854 | ||
|
1
1月 24
|
1313 | ||
|
2
11月 23
|
3231 | ||
|
1
5月 23
|
5573 | ||
|
1
11月 22
|
6463 |
Did you find any solution?