I am calling one of my Python method on on_submit of delivery note doctype and from that method, I am assigning value to my custom field using frappe.db.set_value.
Now my concern is the value which I assign from the method, it is not reflected in the field. But when I reload my form then and then it stores that value in the field.
It requires every time to reload the form of my current record to store the value in a field.
Yes, this is an intended behaviour. When values in database are changed directly (using frappe.db.set_value), the form doesn’t know about the change. Hence, you need to manually refresh the form