As the function 'action_cancel' is multi, we cannot set the value 'is_locked' to True by using '='. Because it will raise an error if self contains more or less than 1 record. To fix this we call the 'write' method which support all cases
Name | Last commit | Last update |
---|---|---|