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?
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
1
Responder
596
Vistas
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.
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
InscribirsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
1
nov 19
|
3622 | ||
|
0
oct 16
|
3370 | ||
|
1
mar 15
|
5855 | ||
|
0
jun 24
|
1368 | ||
|
2
ene 24
|
1663 |