mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
[cleanup] [minor] default+cache related
This commit is contained in:
committed by
Anand Doshi
parent
fea93d0f65
commit
57518fc5f1
@@ -151,8 +151,7 @@ class DocType(TransactionBase):
|
||||
acc = webnotes.conn.sql("select name from `tabAccount` where master_type = 'Supplier' \
|
||||
and master_name = %s and docstatus < 2", self.doc.name)
|
||||
if acc:
|
||||
from webnotes.model import delete_doc
|
||||
delete_doc('Account', acc[0][0])
|
||||
webnotes.delete_doc('Account', acc[0][0])
|
||||
|
||||
def on_trash(self):
|
||||
self.delete_supplier_address()
|
||||
|
||||
Reference in New Issue
Block a user