[minor] show autoname field if it doesn't have any value
This commit is contained in:
parent
f8f674fbe1
commit
dcb24f0c3f
1 changed files with 4 additions and 1 deletions
|
|
@ -516,7 +516,10 @@ _f.Frm.prototype.cleanup_refresh = function() {
|
|||
|
||||
if(me.meta.autoname && me.meta.autoname.substr(0,6)=='field:' && !me.doc.__islocal) {
|
||||
var fn = me.meta.autoname.substr(6);
|
||||
cur_frm.toggle_display(fn, false);
|
||||
|
||||
if (cur_frm.doc[fn]) {
|
||||
cur_frm.toggle_display(fn, false);
|
||||
}
|
||||
}
|
||||
|
||||
if(me.meta.autoname=="naming_series:" && !me.doc.__islocal) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue