Hello, I have two fields of Time datatype. When I save the document and leave them empty, it saves the values as the current time by default as you see below in the photos!!!
The custom fields are not mandatory but still, it creates values to them.
I imported 2500 documents by data import and the results were horribale.
By default it’s empty and I want it empty.
However, before saving the document, the system checks if the field is empty then it sets the value as Time now and I want it to keep empty.
By the way, I added a client script to block this problem. But it only works while creating the attendance manually. If I tried to upload the data using the data import tool, the problem comes again, and set the time now as a value for the blank fields.
Hmm…sorry, I’m not able to reproduce this on my system. I’d suggest testing again on a new field (and, if necessary, doctype) to see if the issue is local or global.
Can you try add this code in a server script on before_save event. I think this may be fix the problem also when you load data trough data import.
If you decide to try, I will be happy if you share the feedback.