diff --git a/frappe/model/document.py b/frappe/model/document.py index d419abc7275..33e1814899c 100644 --- a/frappe/model/document.py +++ b/frappe/model/document.py @@ -1576,6 +1576,12 @@ def add_tag(self, tag): DocTags(self.doctype).add(self.name, tag) + def remove_tag(self, tag): + """Remove a Tag to this document""" + from frappe.desk.doctype.tag.tag import DocTags + + DocTags(self.doctype).remove(self.name, tag) + def get_tags(self): """Return a list of Tags attached to this document""" from frappe.desk.doctype.tag.tag import DocTags