Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
8712 มุมมอง

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.

อวตาร
ละทิ้ง