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:
- CRM
- e-Commerce
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
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.
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
RegistrarsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
1
feb 24
|
4843 | ||
|
1
ene 24
|
1296 | ||
|
2
nov 23
|
3222 | ||
Meetings and Minutes
Resuelto
|
|
1
may 23
|
5547 | |
|
1
nov 22
|
6447 |
Did you find any solution?