[IMP] stock_picking_batch: remove ensure_one in action_cancel
This commit removes a needless `ensure_one` in batch `action_cancel` X-original-commit: cf6013fff67441f67800df56349877c820873110 Part-of: odoo/odoo#97998
This commit is contained in:
@@ -207,7 +207,6 @@ class StockPickingBatch(models.Model):
|
||||
return True
|
||||
|
||||
def action_cancel(self):
|
||||
self.ensure_one()
|
||||
self.state = 'cancel'
|
||||
self.picking_ids = False
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user