跳至內容
選單
此問題已被標幟
3934 瀏覽次數

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









頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
11月 21
6079
0
7月 24
4561
0
10月 19
3217
1
11月 18
3041
3
1月 18
6193