fix: do not show counter on unsaved forms
This commit is contained in:
parent
bb4be32751
commit
ed1a9e1559
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@
|
|||
frappe.ui.form.on('Document Naming Rule', {
|
||||
refresh: function(frm) {
|
||||
frm.trigger('document_type');
|
||||
frm.trigger("add_button");
|
||||
if(!frm.doc.__islocal) frm.trigger("add_button");
|
||||
},
|
||||
document_type: (frm) => {
|
||||
// update the select field options with fieldnames
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue