콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
3816 화면

How could a date field in xml be set as the minimum date of selection the date before put in other fields?

아바타
취소
베스트 답변

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'}}"/>
Regards
아바타
취소

how 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>

관련 게시물 답글 화면 활동
5
6월 20
7123
1
4월 16
5252
2
3월 15
6647
1
5월 24
2951
0
1월 24
2779