mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +00:00
if local, then setup defaults
This commit is contained in:
@@ -24,7 +24,9 @@ erpnext.utils.Controller = Class.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
onload_post_render: function() {
|
onload_post_render: function() {
|
||||||
this.setup_defaults();
|
if(this.frm.doc.__islocal) {
|
||||||
|
this.setup_defaults();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
setup_defaults: function() {
|
setup_defaults: function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user