diff --git a/frappe/model/document.py b/frappe/model/document.py index 1b7a97cc97..4d5eec64fc 100644 --- a/frappe/model/document.py +++ b/frappe/model/document.py @@ -1584,6 +1584,12 @@ class Document(BaseDocument): 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