Skip to content

Commit

Permalink
[IMP] mgmtsystem_audit: Improve Expected singleton error
Browse files Browse the repository at this point in the history
unaiberis committed Dec 11, 2024
1 parent 958955e commit d0abc15
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
@@ -108,7 +108,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):

0 comments on commit d0abc15

Please sign in to comment.