I have created a new doctype called Test
with three fields test_code
, test_name
, status
Now when Create a new project in Project doctype
i need to insert it to Test
doctype
So I have created a new server script after save
as below
frappe.get_doc(dict(
doctype = 'Test',
test_code = doc.name,
status = doc.status
)).insert()
And it worked Sucssfuly
after that create a new server script Before Delete
frappe.get_doc(dict(
doctype = 'Test',
test_code = doc.name,
status = doc.status
)).delete()
also that worked
Now I need a server script to update or change the value For Example: when chang status
in Project doctype I want to update status
in Test
doctype where test_code=doc.name
How I can do that?