mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
Merge pull request #734 from oihane/8.0-quant_merge
[MOD] Write permission error solved
This commit is contained in:
@@ -27,8 +27,8 @@ class StockQuant(models.Model):
|
||||
for quant in quants:
|
||||
if (self._get_latest_move(quant2merge) ==
|
||||
self._get_latest_move(quant)):
|
||||
quant2merge.qty += quant.qty
|
||||
quant2merge.cost += quant.cost
|
||||
quant2merge.sudo().qty += quant.qty
|
||||
quant2merge.sudo().cost += quant.cost
|
||||
pending_quants -= quant
|
||||
quant.sudo().unlink()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user