diff --git a/modules/sale_opportunity/opportunity_reporting.py b/modules/sale_opportunity/opportunity_reporting.py index bae04ee906..d30d697a2b 100644 --- a/modules/sale_opportunity/opportunity_reporting.py +++ b/modules/sale_opportunity/opportunity_reporting.py @@ -424,7 +424,8 @@ class EmployeeMixin: opportunity.employee] def get_rec_name(self, name): - return self.employee.rec_name + if self.employee: + return self.employee.rec_name @classmethod def search_rec_name(cls, name, clause):