#NEWLINE# def validate_forbidden_types( self ) : #NEWLINE# #INDENT# forbidden_document_types = ( 'Bulk Email' , ) #NEWLINE# if ( ( self . document_type in forbidden_document_types ) or frappe . get_meta ( self . document_type ) . istable ) : #NEWLINE# #INDENT# frappe . throw ( _ ( 'Cannot set Email Alert on Document Type {0}' ) . format ( self . document_type ) )