I want to add fields named Overtime and Overtime Amount to the Attendance document. Currently, when I mark attendance, the document is not saved automatically, and I have to save it manually. I want the document to be saved or submitted automatically when attendance is marked, and the Overtime and Overtime Amount fields should not display zero after the document is saved.
calculate your function for overtime and amount in python file inside your custom app and call this function in hooks.py file of your custom app it will resolve your issue.
but still if you have any question feel free to ask
Thank you