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

Usually this kinda options available in html <input> field attributes. similarly is it any option for Odoo input fields? (Note: without any changes in browser settings)

아바타
취소
베스트 답변

Hi Sudhakar,


There is an autocomplete attribute. See the below code, it is disabling the autocomplete for datepicker fields system wide.


<templates id="template" xml:space="preserve">
    <t t-extend="web.datepicker">
        <t t-jquery=".o_datepicker_input" t-operation="attributes">
            <attribute name="autocomplete">off</attribute>
        </t>
    </t>
</templates>
아바타
취소
작성자

Ok Mihran Thanks a lot..

베스트 답변

Hi Sudhakar,


You can simply use autocomplete = "off" attribute like below.

<field name = "date" autocomplete = "off" />

Thank you.

아바타
취소