mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
Replaced for loop in release() with mapped()
This commit is contained in:
committed by
Víctor Martínez
parent
c8e4de7d99
commit
b5ff5c46be
@@ -132,9 +132,7 @@ class StockReservation(models.Model):
|
||||
"""
|
||||
Release moves from reservation
|
||||
"""
|
||||
for rec in self:
|
||||
move_recs = rec.move_id
|
||||
move_recs.action_cancel()
|
||||
self.mapped('move_id').action_cancel()
|
||||
return True
|
||||
|
||||
@api.model
|
||||
|
||||
Reference in New Issue
Block a user