mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[FIX] ValidationError message not displaying correctly
This commit is contained in:
@@ -22,8 +22,8 @@ class ProductProduct(models.Model):
|
||||
raise ValidationError(
|
||||
_(
|
||||
"It is not possible to archive product '%s' which has "
|
||||
"associated stock quantities." % res[0].product_id.display_name
|
||||
)
|
||||
"associated stock quantities."
|
||||
) % res[0].product_id.display_name
|
||||
)
|
||||
|
||||
@api.constrains("active")
|
||||
@@ -39,8 +39,8 @@ class ProductProduct(models.Model):
|
||||
raise ValidationError(
|
||||
_(
|
||||
"It is not possible to archive product '%s' which has "
|
||||
"associated picking lines." % res[0].product_id.display_name
|
||||
)
|
||||
"associated picking lines."
|
||||
) % res[0].product_id.display_name
|
||||
)
|
||||
|
||||
@api.constrains("active")
|
||||
@@ -56,6 +56,6 @@ class ProductProduct(models.Model):
|
||||
raise ValidationError(
|
||||
_(
|
||||
"It is not possible to archive product '%s' which has "
|
||||
"associated stock reservations." % res[0].product_id.display_name
|
||||
)
|
||||
"associated stock reservations."
|
||||
) % res[0].product_id.display_name
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user