diff --git a/frappe/model/base_document.py b/frappe/model/base_document.py index 1162ceacd3..5b6caf4f6e 100644 --- a/frappe/model/base_document.py +++ b/frappe/model/base_document.py @@ -671,10 +671,19 @@ class BaseDocument: return _("Error: Value missing for {0}: {1}").format(_(df.parent), _(df.label)) + def has_content(df): + value = cstr(self.get(df.fieldname)) + has_text_content = strip_html(value).strip() + has_img_tag = "