Browse Source

Change label size

master
venkataakhil 1 year ago
parent
commit
5a0dce0ac2
  1. 1
      smart_service/apis/support.py
  2. 6
      smart_service/masters/doctype/app_labels/app_labels.js

1
smart_service/apis/support.py

@ -419,7 +419,6 @@ def set_procedure_false():
@frappe.whitelist(allow_guest=1) @frappe.whitelist(allow_guest=1)
def clear_procedures(): def clear_procedures():
try: try:
set_procedure_false() set_procedure_false()
frappe.db.sql('''delete FROM `tabPublish`;''') frappe.db.sql('''delete FROM `tabPublish`;''')
frappe.db.sql('''delete FROM `tabPublish_Docs`;''') frappe.db.sql('''delete FROM `tabPublish_Docs`;''')

6
smart_service/masters/doctype/app_labels/app_labels.js

@ -23,7 +23,7 @@ frappe.ui.form.on('App Labels', {
}, },
validate: function (frm) { validate: function (frm) {
if (frm.doc.english_label) { if (frm.doc.english_label) {
if (frm.doc.english_label.length > 50) { if (frm.doc.english_label.length > 100) {
frappe.msgprint("<b>English Label :</b> Only <b> 50 </b> characters allowed") frappe.msgprint("<b>English Label :</b> Only <b> 50 </b> characters allowed")
validated = false; validated = false;
} }
@ -50,7 +50,7 @@ frappe.ui.form.on('App Labels', {
} }
if (frm.doc.page_name) { if (frm.doc.page_name) {
if (frm.doc.page_name.length > 50) { if (frm.doc.page_name.length > 100) {
frappe.msgprint("<b>Page Name :</b> Only <b> 50 </b> characters allowed") frappe.msgprint("<b>Page Name :</b> Only <b> 50 </b> characters allowed")
validated = false; validated = false;
} }
@ -77,7 +77,7 @@ frappe.ui.form.on('App Labels', {
} }
if (frm.doc.label) { if (frm.doc.label) {
if (frm.doc.label.length > 50) { if (frm.doc.label.length > 100) {
frappe.msgprint("<b>Translated Label :</b> Only <b> 50 </b> characters allowed") frappe.msgprint("<b>Translated Label :</b> Only <b> 50 </b> characters allowed")
validated = false; validated = false;
} }

Loading…
Cancel
Save