Do not fail to compute record name of opportunity reporting without employee
Closes #13114
This commit is contained in:
1 parent
e69fbf7a9e
commit
11b092a61b
1 file changed
+2
-1
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user