Open agritheory opened 2 months ago
@agritheory I didn't find any usage for this method - set_status_to_approved
in the codebase. should I change doc.status to match against approval_state instead of string literal?
@MyuddinKhatri Yes or match Frappe's default "Submitted" if a document is submittable. It might also make sense to call doc.get_status
if that exists. I will share an example client implementation of this privately.
New custom field in workflow for Approval State
Refactor api.py/set_status_to_approved to not use a string literal for "Approved"