Merge pull request #4970 from nabinhait/fix77

[fix] delete company transactions
This commit is contained in:
Nabin Hait 2016-03-14 16:36:51 +05:30
commit aa7e17cd80

View File

@ -27,10 +27,6 @@ def delete_company_transactions(company_name):
"Purchase Taxes and Charges Template", "POS Profile", 'BOM'): "Purchase Taxes and Charges Template", "POS Profile", 'BOM'):
delete_for_doctype(doctype, company_name) 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 notification counts
clear_notifications() clear_notifications()