I was about to try when you send me this … but the result is ‘dict’ object has no attribute ‘start_date’
Maybe i need to create the string received to an object or to dict so that this runs
def check_mandatory(self):
for fieldname in [‘company’, ‘start_date’, ‘end_date’]:
if not self.get(fieldname):
frappe.throw((“Please set {0}”).format(self.meta.getlabel(fieldname)))