示例#1
0
	def on_trash(self):
		# delete entry from Table of Contents of other pages
		WebsiteGenerator.on_trash(self)
		
		webnotes.conn.sql("""delete from `tabTable of Contents`
			where web_page=%s""", self.doc.name)
		
		# clear all cache if it has toc
		if self.doclist.get({"parentfield": "toc"}):
			from webnotes.webutils import clear_cache
			clear_cache()
示例#2
0
文件: item.py 项目: XWARIOSWX/erpnext
	def on_trash(self):
		webnotes.conn.sql("""delete from tabBin where item_code=%s""", self.doc.item_code)
		WebsiteGenerator.on_trash(self)
示例#3
0
文件: item.py 项目: pdvyas/erpnext
 def on_trash(self):
     webnotes.conn.sql("""delete from tabBin where item_code=%s""",
                       self.doc.item_code)
     WebsiteGenerator.on_trash(self)