fix: create custom field when doctype is changed
This commit is contained in:
parent
ca812bb307
commit
bd055ab78c
1 changed files with 1 additions and 3 deletions
|
|
@ -35,11 +35,9 @@ class Workflow(Document):
|
|||
self.set_active()
|
||||
self.validate_docstatus()
|
||||
|
||||
def after_insert(self):
|
||||
self.create_custom_field_for_workflow_state()
|
||||
|
||||
def on_update(self):
|
||||
frappe.clear_cache(doctype=self.document_type)
|
||||
self.create_custom_field_for_workflow_state()
|
||||
self.update_default_workflow_status()
|
||||
|
||||
def create_custom_field_for_workflow_state(self):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue