diff --git a/stock_no_negative/models/stock_quant.py b/stock_no_negative/models/stock_quant.py index 6af202a2e36f..2b18fcb09a0d 100644 --- a/stock_no_negative/models/stock_quant.py +++ b/stock_no_negative/models/stock_quant.py @@ -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) raise ValidationError( _( "You cannot validate this stock operation because the "