[FIX] stock_cycle_count: inventory adjustment already adds these fields

This commit is contained in:
ArnauCForgeFlow
2024-07-24 11:02:53 +02:00
parent 39806260ac
commit 82bbd017f2

View File

@@ -158,12 +158,6 @@ class StockInventory(models.Model):
self.prefill_counted_quantity = (
self.company_id.inventory_adjustment_counted_quantities
)
self.stock_quant_ids.update(
{
"user_id": self.cycle_count_id.responsible_id,
"inventory_date": self.cycle_count_id.date_deadline,
}
)
if self.prefill_counted_quantity == "zero":
self.stock_quant_ids.write({"inventory_quantity": 0})
elif self.prefill_counted_quantity == "counted":