Skip to content

Commit

Permalink
remove custom comment
Browse files Browse the repository at this point in the history
  • Loading branch information
agent-z28 committed Sep 30, 2024
1 parent 4f54e69 commit 92be705
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions account_dms_field/models/dms_directory.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,9 @@ def _check_name(self):
"""Override a method to update the record name for the account.move model.
#Issue-249"""
for record in self:
# BAD customization start. #Issue-249
name = record.name
# Updated the name of account move record due to an issue caused by a (/)
# in the record name when opening the temporary directory created in the
# check_name method. #Issue-249
if record.res_model == "account.move":
name = name.replace("/", "-")
# BAD customization end. #Issue-249
if self.env.context.get("check_name", True) and not check_name(name):
raise ValidationError(_("The directory name is invalid."))
if record.is_root_directory:
Expand Down

0 comments on commit 92be705

Please sign in to comment.