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

Hello,

I want to create an on change event when writing on a date field: when i put 01 it should write automatically the month and the year (01.11.2013). I did that with other type of field but it doesn't work with date field, it just put the value when i save the record.

Any one have an idea about that and can help me?

Thanks,

아바타
취소

Could you please post your code and where are you trying to add this functionality?

작성자

hello, here is my function: def onchange_date(...,date,...): return {'value':{'field_date':date}} what i can't understand is that when i write 01 and i make a print of the 'field_date' i have 01.11.2013 so 'field_date' contain the good result but it's not showed untill i save the record