From 4883e1a73438e409c6eb885678c8967ef7fd1908 Mon Sep 17 00:00:00 2001 From: venkataakhil Date: Tue, 16 May 2023 14:17:30 +0530 Subject: [PATCH] On laod fix --- smart_service/transactions/doctype/publish/publish.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smart_service/transactions/doctype/publish/publish.py b/smart_service/transactions/doctype/publish/publish.py index 75cef7b..f51729c 100644 --- a/smart_service/transactions/doctype/publish/publish.py +++ b/smart_service/transactions/doctype/publish/publish.py @@ -33,7 +33,7 @@ class Publish(Document): str(km_mapping.name) + '\n' def onload(self): - if self.child_table_updated = 1: + if self.child_table_updated == 1: current_db_name = frappe.conf.get("db_name") # To validate updated procedure status procedure_status = frappe.db.sql("""select p.name,p.update_procedure_status,pro.name,p.variant_mapping,p.system,p.sub_system,p.asset_category,p.item_category,p.variant,p.procedure_link,p.procedure_status,pro.name,pro.workflow_state