Set a value in a single doctype

Hey There,

I have a single doctype which has a field that I need change its value to another from other doctypes. Who can help me to set a value in a single doctype :frowning: i meant something like :

frappe.client.set_value (‘Client’, self.client, ‘balance’, value=(self.balance+self.cantidad))


What have you tried? What isn’t working?

You can get value from other doctypes using

value = frappe.db.get_value(doctype, docname, fieldname)

and set value in single doctype

frappe.client.set_value(doctype, docname, fieldname, value)

For single doctype, doctype and docname are same


Thanks. It works perfectly