How can I change default time (now it is from 8AM to 9AM) withint the leave request menu?
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
file location:
/usr/share/pyshared/openerp/addons/web_calendar/static/src/js/calendar.js
Code:
slow_create: function(event_id, event_obj) { var self = this; if (this.current_mode() === 'month') { event_obj['start_date'].addHours(8); if (event_obj._length === 1) { event_obj['end_date'] = new Date(event_obj['start_date']); event_obj['end_date'].addHours(1); } else { event_obj['end_date'].addHours(-4); } } [....]
I change:
event_obj['start_date'].addHours(8)
With:
event_obj['start_date'].addHours(7)
Now the default value is 7AM
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Registrarse