diff --git a/mgmtsystem_audit/models/mgmtsystem_audit.py b/mgmtsystem_audit/models/mgmtsystem_audit.py index 5c0d37874ce6..0b21d5eb688b 100644 --- a/mgmtsystem_audit/models/mgmtsystem_audit.py +++ b/mgmtsystem_audit/models/mgmtsystem_audit.py @@ -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):