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)
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)
def on_update(self): DocTypeNestedSet.on_update(self) clear_cache(self.doc.name)