Hello guys. I have a frappe application with 2 doctypes “property and payment”. I have a select field in property called “status” where the options are “Available” and “Rented”. And i have a link field to the property dcotype in my payment doctype.
I want the “status” field in the Property doctype to change to “Rented” when i create a new record in the Payment doctype linking a paticular property.
how to i go about acheiving this? mind you i am a beginner on frappe framework
Hi madu,
There are different purposes of using these methods
To set a single value at a time, you can use frappe.db.set_value(“Property”, {“name”: doc_name}, “status”, “Rented”)
To set multiple values at a time. you can use
So, I have a custom DocType, and I’d like the status of to change to “Assigned” when a user is assigned to the document (from the sidebar), indicating someone is working on it. The status field shall remain read-only.
And I’d like the status to change once the document is submitted, to Submitted etc.