How could a date field in xml be set as the minimum date of selection the date before put in other fields?
Această întrebare a fost marcată
1
Răspunde
5086
Vizualizări
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>
Îți place discuția? Nu doar citi, alătură-te!
Creează-ți un cont astăzi pentru a beneficia de funcții exclusive și a interacționa cu minunata noastră comunitate!
Înscrie-te| Postări similare | Răspunsuri | Vizualizări | Activitate | |
|---|---|---|---|---|
|
Inherit from inherited view
Rezolvat
|
|
5
iun. 20
|
8879 | |
|
|
1
apr. 16
|
6851 | ||
|
|
2
mar. 15
|
8295 | ||
|
|
1
mai 24
|
5163 | ||
|
|
0
dec. 25
|
4848 |