From 653f68d2e4155fedf6d8e1213b7405ad1f4efad7 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 11 Mar 2016 17:36:57 +0530 Subject: [PATCH] [fix] delete company transactions --- erpnext/setup/doctype/company/delete_company_transactions.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/erpnext/setup/doctype/company/delete_company_transactions.py b/erpnext/setup/doctype/company/delete_company_transactions.py index d32e14fcc1..b07a7941ab 100644 --- a/erpnext/setup/doctype/company/delete_company_transactions.py +++ b/erpnext/setup/doctype/company/delete_company_transactions.py @@ -27,10 +27,6 @@ def delete_company_transactions(company_name): "Purchase Taxes and Charges Template", "POS Profile", 'BOM'): delete_for_doctype(doctype, company_name) - else: - # un-set company - frappe.db.sql('update `tab{0}` set company="" where company=%s'.format(doctype), company_name) - # Clear notification counts clear_notifications()