Skip to content

Commit

Permalink
[FIX] stock_no_negative: use display_name instead of name_get because it
Browse files Browse the repository at this point in the history
is deprecated
  • Loading branch information
micheledic committed Jan 31, 2025
1 parent a61e89f commit 44d9a28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stock_no_negative/models/stock_quant.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def check_negative_qty(self):
):
msg_add = ""
if quant.lot_id:
msg_add = _(" lot {}").format(quant.lot_id.name_get()[0][1])
msg_add = _(" lot {}").format(quant.lot_id.display_name)

Check warning on line 42 in stock_no_negative/models/stock_quant.py

View check run for this annotation

Codecov / codecov/patch

stock_no_negative/models/stock_quant.py#L42

Added line #L42 was not covered by tests
raise ValidationError(
_(
"You cannot validate this stock operation because the "
Expand Down

0 comments on commit 44d9a28

Please sign in to comment.