Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3924 Visualizzazioni

I have two datetime-local fields in odoo template.

<div class="form-group form-field">
<label class="control-label" for="book_start_time">Start Date and Time</label>
<div >
<input type="datetime-local" class="form-control o_website_form_input" name="book_start_time" t-att-value="request.params.get('book_start_time', '')" required=""/>
</div>
</div>
<div class="form-group form-field">
<label class="control-label" for="book_end_time">End Date and Time</label>
<div >
<input type="datetime-local" class="form-control o_website_form_input" name="book_end_time" t-att-value="request.params.get('book_end_time', '')" required=""/>
</div>
</div>

How will generate an Warning message when the user inputs an end date less than start date?

Also I need to deactivate all  dates before today's date. Please help









Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
nov 21
6078
0
lug 24
4559
0
ott 19
3211
1
nov 18
3036
3
gen 18
6189