Timesheet status issue when i change draft to open

i am trying to change draft as a open i did it by activating developer mode but while submitting this is coming (screenshot)

Some logic has been added to the timesheet doctype, so you can’t set or add the status. If you want to add it, you have to override the update status-related functions.

how can i override it , from frontend? any option?

From UI side, not possible. You have to add logic in your custom app.

thank you, could you please guide me how to send email to project manager after submitting timesheet

Use notification doctype, lots of thread is available in the forum so search it.

Please refer this link

@Prashanth_Kolhetkar create property setter for adding option draft in status field of Timesheet

i kept open in place of draft in code but its not working

@Prashanth_Kolhetkar there is no Draft in status field options.

i want open not draft

@Prashanth_Kolhetkar but you are trying to set Draft Status in Status Field but there is no Draft Available in status options so this message is shown

see screenshot in dropdown it available