mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[FIX] Unlinking quants fails with non-admin users, avoided. Closes #719
This commit is contained in:
@@ -24,7 +24,7 @@ class StockQuant(models.Model):
|
||||
if self._get_latest_move(self) == self._get_latest_move(quant):
|
||||
self.qty += quant.qty
|
||||
self.cost += quant.cost
|
||||
quant.unlink()
|
||||
quant.sudo().unlink()
|
||||
|
||||
@api.model
|
||||
def quants_unreserve(self, move):
|
||||
|
||||
Reference in New Issue
Block a user