Skip to content

Commit

Permalink
temp rebasing PR 339 (c5b2e11)
Browse files Browse the repository at this point in the history
  • Loading branch information
roboadhoc committed Mar 1, 2024
2 parents c56718b + c5b2e11 commit 1a0e6be
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def find(self, date, closest=False):
def check_date_unique(self):
for rec in self:
repeated = self.find(rec.date)
if len(repeated) > 1:
if len(repeated) > 1 or repeated.id != rec.id:
rec_date = fields.Date.from_string(rec.date)
raise ValidationError(_(
"Ya existe un indice para el periodo %s %s. Solo"
Expand Down

0 comments on commit 1a0e6be

Please sign in to comment.