diff --git a/msp/hooks.py b/msp/hooks.py index e24292c..5df4a86 100644 --- a/msp/hooks.py +++ b/msp/hooks.py @@ -87,11 +87,11 @@ jenv = { # --------------- # Hook on document methods and events -doc_events = { - "Customer": { - "on_update": "msp.msp.customer_quick_entry.custom_customer_info" - } -} +# doc_events = { +# "Customer": { +# "on_update": "msp.msp.customer_quick_entry.custom_customer_info" +# } +# } # Scheduled Tasks # --------------- diff --git a/msp/msp/doctype/it_object/it_object.py b/msp/msp/doctype/it_object/it_object.py index bc2d35b..7312138 100644 --- a/msp/msp/doctype/it_object/it_object.py +++ b/msp/msp/doctype/it_object/it_object.py @@ -30,7 +30,7 @@ class ITObject(Document): 'currentState': host_data['Hoststatus']['humanState'], 'lastCheck': host_data['Hoststatus']['lastCheckInWords'], 'nextCheck': host_data['Hoststatus']['nextCheckInWords'], - 'currentStateSince': host_data['Hoststatus']['lastHardStateChangeInWords'] + 'currentStateSince': host_data['Hoststatus']['last_state_change_in_words'] }, 'servicesStatus': { 'totalServices': host_data['ServicestatusSummary']['total'],