|
|
@ -54,8 +54,8 @@ class Publish(Document): |
|
|
|
self.language, self.publish_type, |
|
|
|
self.release_description, self.variant, |
|
|
|
self.repair_checksheet_publish) |
|
|
|
update_publish_status = frappe.db.sql( |
|
|
|
"""update `tabPublish` set publish_status='Published' where name='{0}'""".format(self.name)) |
|
|
|
# update_publish_status = frappe.db.sql( |
|
|
|
# """update `tabPublish` set publish_status='Published' where name='{0}'""".format(self.name)) |
|
|
|
|
|
|
|
if self.docstatus == 1 and self.publish_status == 'To Publish' and self.publish_module == 'Feature Finder' and self.publish_type == 'Internal' and self.feature_finder_publish: |
|
|
|
feature_finder_publish(self.vehicle, self.vehicle_id, |
|
|
@ -69,15 +69,15 @@ class Publish(Document): |
|
|
|
self.variant) |
|
|
|
update_feature_published_docs(self) |
|
|
|
update_publish_status = frappe.db.sql( |
|
|
|
"""update `tabPublish Test` set publish_status='Published' where name='{0}'""".format(self.name)) |
|
|
|
if self.docstatus == 1 and self.publish_status == 'To Publish' and self.publish_module == 'Repair service' and self.publish_type == 'Global' and self.feature_finder_publish: |
|
|
|
"""update `tabPublish` set publish_status='Published' where name='{0}'""".format(self.name)) |
|
|
|
if self.docstatus == 1 and self.publish_status == 'To Publish' and self.publish_module == 'Repair service' and self.publish_type == 'Global': |
|
|
|
repair_checksheet_publish(self.vehicle, self.vehicle_id, |
|
|
|
self.language, self.publish_type, |
|
|
|
self.release_description, self.variant, |
|
|
|
self.repair_checksheet_publish) |
|
|
|
update_repair_published_docs(self) |
|
|
|
# update_publish_status = frappe.db.sql( |
|
|
|
# """update `tabPublish` set publish_status='Published' where name='{0}'""".format(self.name)) |
|
|
|
update_publish_status = frappe.db.sql( |
|
|
|
"""update `tabPublish` set publish_status='Published' where name='{0}'""".format(self.name)) |
|
|
|
def onload1(self): |
|
|
|
current_db_name = frappe.conf.get("db_name") |
|
|
|
# To validate updated procedure status |
|
|
|