[FIX] stock: add ensure_one to action_toggle_is_locked

This commit is contained in:
Joren Van Onder
2017-09-20 15:08:32 +02:00
committed by amoyaux
parent 340a3e03d1
commit 2f959e8769
+1
View File
@@ -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