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

I create a new input in web.datepicker template for hijri calendar date, It appears when the record opened or created but when I try to save the record, input of hijri date disappears on form view ... any advice?

<template>     

<t t-name="web.datepicker">            

<t t-set="placeholder" t-value="widget.getParent().node and widget.getParent().node.attrs.placeholder"/>            

<t t-set="datepickerID" t-value="_.uniqueId('datepicker')"/>           

<div class="o_datepicker" aria-atomic="true" t-att-id="datepickerID" data-target-input="nearest">                 

<input type="text" class="o_datepicker_input o_input datetimepicker-input" t-att-name="widget.name" t-att-placeholder="placeholder" t-attf-data-target="##{datepickerID}" /> 

<input type="text" class="oe_hijri oe_hi_label oe_simple_date oe_datepicker_master" t-att-name="widget.name" /> 

<span class="o_datepicker_button"/> 

</div> 

</t> 

</template>

Also, when I clicked on hijri calendar, It opens both georgian and hijri calendars ... but how to open only hijri?

It works in Odoo 12 but the problem on Odoo13

아바타
취소
관련 게시물 답글 화면 활동
1
7월 25
620
2
6월 25
1007
1
5월 25
2550
1
4월 25
3706
3
8월 24
2778