mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 10:49:09 +00:00
added html to tinymce + moved website/web_cache.py > website/utils.py
This commit is contained in:
@@ -42,9 +42,6 @@ class DocType:
|
||||
# webpage updates
|
||||
from website.utils import update_page_name
|
||||
update_page_name(self.doc, self.doc.item_name)
|
||||
elif self.doc.page_name:
|
||||
from website.web_cache import clear_cache
|
||||
clear_cache(self.doc.page_name)
|
||||
|
||||
bin = sql("select stock_uom from `tabBin` where item_code = '%s' " % self.doc.item_code)
|
||||
if bin and cstr(bin[0][0]) != cstr(self.doc.stock_uom):
|
||||
@@ -85,7 +82,7 @@ class DocType:
|
||||
where item_code=%s and is_cancelled='Yes' """, self.doc.item_code)
|
||||
|
||||
if self.doc.page_name:
|
||||
from website.web_cache import clear_cache
|
||||
from website.utils import clear_cache
|
||||
clear_cache(self.doc.page_name)
|
||||
|
||||
# Check whether Ref Rate is not entered twice for same Price List and Currency
|
||||
@@ -199,7 +196,7 @@ class DocType:
|
||||
def on_rename(self,newdn,olddn):
|
||||
sql("update tabItem set item_code = %s where name = %s", (newdn, olddn))
|
||||
if self.doc.page_name:
|
||||
from website.web_cache import clear_cache
|
||||
from website.utils import clear_cache
|
||||
clear_cache(self.doc.page_name)
|
||||
|
||||
def prepare_template_args(self):
|
||||
|
||||
Reference in New Issue
Block a user