Skip to content

Commit

Permalink
Update product_internal_reference_generator/models/product_code_seque…
Browse files Browse the repository at this point in the history
…nce.py

Co-authored-by: Alessio <[email protected]>
  • Loading branch information
ilyasProgrammer and renda-dev authored Dec 18, 2023
1 parent 3888a47 commit ab92ea1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ def unlink(self):
if products:
raise exceptions.ValidationError(
_(
"You can't delete %s template because there is products "
"related to it. You can archive it instead."
" Products: %s" % (rec.name, products.mapped("display_name"))
"You can't delete %s template because there are products "
"related to it. You can archive it instead.\n"
"Products: '%s'" % (rec.name, ', '.join(products.mapped("display_name")))
)
)
return super().unlink()

0 comments on commit ab92ea1

Please sign in to comment.