How to "lock" task at a certain stage.
Is it possible to "lock" a task when it gets to a certain stage so it can't be moved or data edited?
Normally I do this with a bool field that I set to true and then check it at the beginning of the write method and when it's TRUE it just raises a validation that the record cannot be changed. But when I try this approach on the task it doesn't work because moving a task in kanban triggers the write method 2 times, first it writes the new stage_id and second it writes a sequence.
So is there a way that when the task is moved to a certain stage, that one prevents the task to be edited and have still have the kanban view?