Skip to content

Commit

Permalink
[IMP] mgmtsystem_audit: Improve Expected singleton error
Browse files Browse the repository at this point in the history
  • Loading branch information
unaiberis committed Dec 11, 2024
1 parent cac1b63 commit a98ca73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mgmtsystem_audit/models/mgmtsystem_audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class MgmtsystemAudit(models.Model):
def _compute_number_of_nonconformities(self):
"""Count number of nonconformities."""
for audit in self:
audit.number_of_nonconformities = len(self.nonconformity_ids)
audit.number_of_nonconformities = len(audit.nonconformity_ids)

@api.depends("imp_opp_ids")
def _compute_number_of_improvement_opportunities(self):
Expand Down

0 comments on commit a98ca73

Please sign in to comment.