Skip to content

Commit

Permalink
[FIX] stock_cycle_count: inventory adjustment already adds these fields
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnauCForgeFlow committed Jul 24, 2024
1 parent 3980626 commit 82bbd01
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions stock_cycle_count/models/stock_inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,6 @@ def action_state_to_in_progress(self):
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})

Check warning on line 162 in stock_cycle_count/models/stock_inventory.py

View check run for this annotation

Codecov / codecov/patch

stock_cycle_count/models/stock_inventory.py#L162

Added line #L162 was not covered by tests
elif self.prefill_counted_quantity == "counted":
Expand Down

0 comments on commit 82bbd01

Please sign in to comment.