[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:
Ahmed Khalaf (ahkh)
2022-08-16 16:28:22 +02:00
parent a818a9b732
commit af6afc8053
@@ -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