Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] stock_no_negative: use display_name instead of name_get because it is deprecated #1862

Open
wants to merge 1 commit into
base: 18.0
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
):
msg_add = ""
if quant.lot_id:
msg_add = _(" lot {}").format(quant.lot_id.name_get()[0][1])
msg_add = _(" lot %(name)s", name=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
Loading