mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[IMP] stock_quant_merge: modify context to force unlink
change made into core in4bd64dc91bin OCB4bd64dc91b
This commit is contained in:
@@ -38,7 +38,7 @@ class StockQuant(models.Model):
|
||||
cost += quant.cost
|
||||
cont += 1
|
||||
pending_quants -= quant
|
||||
quant.sudo().unlink()
|
||||
quant.with_context(force_unlink=True).sudo().unlink()
|
||||
quant2merge.sudo().cost = cost / cont
|
||||
|
||||
@api.model
|
||||
|
||||
Reference in New Issue
Block a user