Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2974 Tampilan

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,

Avatar
Buang

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

Penulis

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