Document status tracking

The feature is implemented in Frappe 7.3