Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
596 Vistas

I am having Odoo 17 instance where I want to keep only specific date range enabled for selection in Date time picker, I have tried _getDatepickerOptions() but it is not working, I have used _getFlatpickrOptions() but not working, can I get some example of document for the same?

Avatar
Descartar
Mejor respuesta

Hi Kedar Dave, 

Use 

<field name="date_begin" widget="daterange" options="{'related_end_date': 'date_end'}"/>
<field name="date_end" widget="daterange" options="{'related_start_date': 'date_begin'}"/>

Hope this help.

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
nov 19
3622
0
oct 16
3370
1
mar 15
5855
0
jun 24
1368
2
ene 24
1663