[FIX] stock: add ensure_one to action_toggle_is_locked
This commit is contained in:
@@ -624,6 +624,7 @@ class Picking(models.Model):
|
||||
}
|
||||
|
||||
def action_toggle_is_locked(self):
|
||||
self.ensure_one()
|
||||
self.is_locked = not self.is_locked
|
||||
return True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user