I’m doing the Frappe Developer Tutorial, and on the Session 4 he does the first script to return the name of Attendees. But the script it’s not working. Why this is happening?
My script:
from future import unicode_literals
import frappe
from frappe.model.document import Document
class meeting(Document):
def validate(self):
for attendee in self.attendees:
if not attendee.full_name:
user = frappe.get_doc(“User”, attendee.attendee)
#concatenate by name if it has value
attendee.full_name = " ".join(filter(None, [user.first_name, user.middle_name, user.last_name]))