Skip to content
Snippets Groups Projects
Commit cf6013ff authored by Ahmed Khalaf (ahkh)'s avatar Ahmed Khalaf (ahkh)
Browse files

[IMP] stock_picking_batch: remove ensure_one in action_cancel

This commit removes a needless `ensure_one` in batch `action_cancel`

Part-of: odoo/odoo#97401
parent 2ad78818
Branches
Tags
No related merge requests found
......@@ -191,7 +191,6 @@ class StockPickingBatch(models.Model):
return True
def action_cancel(self):
self.ensure_one()
self.state = 'cancel'
self.picking_ids = False
return True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment