This question has been flagged

Hello,

In the model 'hr_timesheet_sheet.sheet' I want to create a function triggered by a button that sets the Timesheet workflow to state="draft" and at the same time opens a form view, but I don't know how I can create a function like this. Can someone help me with this?

Avatar
Discard