nay_min
1
Hi All,
I can’t seem to be able to add "Assigned to " in print format. It seems this field is stored as json in _assign field in database.
I tried both standard format and custom format. I can’t find the field anywhere.
Is this possible at the moment?
Thanks in advance.
Nay Min
Sangram
2
@nay_min
If you want to display assigned user of form in Print format.
You can fetch it from ToDo
.
Use following lines in your custom PrintFormat to fetch Assigned User.
frappe.db.get_value("ToDo", {"reference_type": doc.doctype, "reference_name": doc.name}, "owner")