How could a date field in xml be set as the minimum date of selection the date before put in other fields?
Câu hỏi này đã bị gắn cờ
1
Trả lời
5097
Lượt xem
Hi,
You can provide the minimum date or maximum date allowed to a date field using ‘datepicker’ in the ‘options’ of the field.
Example,
< field name="sample_date" options="{'datepicker': {'minDate': '6/6/2021'}}"/>
or
< field name="sample_date" options="{'datepicker': {'minDate': 'now'}}"/>Regardshow about number sir? can you help
<?xml version="1.0"?>
<xpath expr="//field[@name='order_line']/tree//field[@name='price_unit']" position="after">
<field name="purchase_price" groups="base.group_user" required="1" type="number" min="1"/>
</xpath>
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký| Bài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
|---|---|---|---|---|
|
Inherit from inherited view
Đã xử lý
|
|
5
thg 6 20
|
8885 | |
|
|
1
thg 4 16
|
6856 | ||
|
|
2
thg 3 15
|
8303 | ||
|
|
1
thg 5 24
|
5165 | ||
|
|
0
thg 12 25
|
4860 |