Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
7012 Zobrazení

Hi, 

Do you know if it's possible to have this beavior in odoo :

<input class="oe_datepicker_master" type="text" name="date_start" readonly="">

This html forces the user to use date picker and the user can't insert text. 

If I do readonly=True in odoo the user can't write the date or even choose the date from the date picker.

Do you know how to do this in odoo?

Thanks


Avatar
Zrušit
Nejlepší odpověď

You will always have a extreme case where the user's browser doesn't load the javascripts.

If you want constraints on what can be encoded in that field, you should check the submitted form with the same rules used by the date picker.

Maybe you can define a javascript that will remove the readonly property of the field only when date picker have the focus.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
led 19
8139
2
led 24
2370
2
čvn 22
4315
2
čvn 18
5892
2
lis 16
13399