示例#1
0
	def on_update(self):
		DocTypeNestedSet.on_update(self)
		WebsiteGenerator.on_update(self)
		
		self.validate_name_with_item()
		
		from selling.utils.product import invalidate_cache_for
		invalidate_cache_for(self.doc.name)
				
		self.validate_one_root()
示例#2
0
    def on_update(self):
        DocTypeNestedSet.on_update(self)
        WebsiteGenerator.on_update(self)

        self.validate_name_with_item()

        from selling.utils.product import invalidate_cache_for
        invalidate_cache_for(self.doc.name)

        self.validate_one_root()
	def on_update(self):
		if not webnotes.flags.in_rebuild_config:
			DocTypeNestedSet.on_update(self)
示例#4
0
	def on_update(self):
		DocTypeNestedSet.on_update(self)
		cache = webnotes.cache()
		for key in ("is_public", "unit_html", "unit_title"):
			cache.delete_value(key + ":" + self.doc.name)
示例#5
0
文件: unit.py 项目: butu5/aapkamanch
	def on_update(self):
		DocTypeNestedSet.on_update(self)
		clear_cache(self.doc.name)