fix: Skip due date update during update and install
This commit is contained in:
parent
f2ef686797
commit
cf44487acd
1 changed files with 6 additions and 0 deletions
|
|
@ -240,6 +240,12 @@ def apply(doc, method=None, doctype=None, name=None):
|
|||
|
||||
def update_due_date(doc, state=None):
|
||||
# called from hook
|
||||
if (frappe.flags.in_patch
|
||||
or frappe.flags.in_install
|
||||
or frappe.flags.in_migrate
|
||||
or frappe.flags.in_import
|
||||
or frappe.flags.in_setup_wizard):
|
||||
return
|
||||
assignment_rules = frappe.cache_manager.get_doctype_map('Assignment Rule', 'due_date_rules_for_' + doc.doctype, dict(
|
||||
document_type = doc.doctype,
|
||||
disabled = 0,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue