Skip to content

Commit

Permalink
Merge pull request #43003 from barredterra/toggle_naming
Browse files Browse the repository at this point in the history
  • Loading branch information
barredterra authored Aug 31, 2024
2 parents 9d4ad98 + ab2d7f7 commit 9b4bb30
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion erpnext/public/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ $.extend(erpnext, {
},

toggle_naming_series: function () {
if (cur_frm && cur_frm.fields_dict.naming_series) {
if (
cur_frm &&
cur_frm.fields_dict.naming_series &&
cur_frm.meta.naming_rule == 'By "Naming Series" field'
) {
cur_frm.toggle_display("naming_series", cur_frm.doc.__islocal ? true : false);
}
},
Expand Down

0 comments on commit 9b4bb30

Please sign in to comment.