code: def email_from_name(self):
          
          lab_from_name = self.laboratory.getName()
          portal_from_name = self.portal.email_from_name
          return lab_from_name or portal_from_name
docs: Portal email name