Skip to content

Commit

Permalink
[FIX] stock_inventory: only set to done adjustment if there is an adj…
Browse files Browse the repository at this point in the history
…ustment
  • Loading branch information
JoanSForgeFlow committed Apr 24, 2024
1 parent 0136490 commit 7f4725f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stock_inventory/models/stock_quant.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def _apply_inventory(self):
}
)
rec.to_do = False
if self.env.company.stock_inventory_auto_complete:
if adjustment and self.env.company.stock_inventory_auto_complete:
adjustment.action_auto_state_to_done()
return res

Expand Down

0 comments on commit 7f4725f

Please sign in to comment.