|
@@ -4,7 +4,7 @@ |
|
|
frappe.ui.form.on('Document Naming Rule', { |
|
|
frappe.ui.form.on('Document Naming Rule', { |
|
|
refresh: function(frm) { |
|
|
refresh: function(frm) { |
|
|
frm.trigger('document_type'); |
|
|
frm.trigger('document_type'); |
|
|
if (!frm.doc.__islocal) frm.trigger("add_button"); |
|
|
|
|
|
|
|
|
if (!frm.doc.__islocal) frm.trigger("add_update_counter_button"); |
|
|
}, |
|
|
}, |
|
|
document_type: (frm) => { |
|
|
document_type: (frm) => { |
|
|
// update the select field options with fieldnames |
|
|
// update the select field options with fieldnames |
|
|