material_request.py updates Job Card’s field ‘material_request’ (by linking manually created ‘Material Request’ with ‘Job Card’??!):
if self.job_card:
update_job_card_reference(self.job_card, ‘material_request’, self.name)
via job_card.py:
def update_job_card_reference(name, fieldname, value):
frappe.db.set_value(‘Job Card’, name, fieldname, value)
Unfortunately, I can’t find that Job Card doctype would have such field https://github.com/frappe/erpnext/blob/staging/erpnext/manufacturing/doctype/job_card/job_card.json