[FIX] stock_inventory: prevent error when applying

inventory without quantities
This commit is contained in:
AaronHForgeFlow
2024-05-23 14:03:15 +02:00
parent 2aef72f6dd
commit 547665b187

View File

@@ -9,6 +9,7 @@ class StockQuant(models.Model):
def _apply_inventory(self):
res = super()._apply_inventory()
record_moves = self.env["stock.move.line"]
adjustment = self.env["stock.inventory"].browse()
for rec in self:
adjustment = (
self.env["stock.inventory"]