How could a date field in xml be set as the minimum date of selection the date before put in other fields?
คำถามนี้ถูกตั้งค่าสถานะ
1
ตอบกลับ
5118
มุมมอง
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>
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อ| Related Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
|---|---|---|---|---|
|
Inherit from inherited view
แก้ไขแล้ว
|
|
5
มิ.ย. 20
|
8952 | |
|
|
1
เม.ย. 16
|
6916 | ||
|
|
2
มี.ค. 15
|
8366 | ||
|
|
1
พ.ค. 24
|
5227 | ||
|
|
0
ธ.ค. 25
|
4928 |