Edit doctype becomes frozen

Hi Team,

Greetings from Brillare,

I am involved in only implementation and partial customization of ERP in my company.

After certain changes to various files I just came to know that we are unable to open/edit any doctype.

DocType can be opened from search menu, it lists all DocTypes but it does not allow to edit or open it. Opened window becomes light in background.

Thanks in advance.

Dr. Tejas Parmar
Technology Admin, BSPL

Have a look to the js console log, you could have am error on there

Hi @brillarescience,

Did you added developer_mode: 1 in site_config.json file? If no then using command bench set-config developer_mode 1 in frappe-bench folder you can set it.

One more thing don’t edit any core doctype, this will make an issue at the time of updating the setup. You can use customize form, custom field to edit the core doctype.

Thanks, Rohit

Hi @brillarescience,

Can you provide the browser’s console log

Thanks

TypeError: this.grid.meta is undefined
frappe.ui.form.GridRow<.make()
form.min.js:3284
frappe.ui.form.GridRow<.init()
form.min.js:3269
Class()
desk.min.js:105
frappe.ui.form.Grid<.make_head()
form.min.js:2795
frappe.ui.form.Grid<.refresh()
form.min.js:2826
frappe.ui.form.ControlTable<.make/<()
desk.min.js:5458
n.event.dispatch()
jquery.min.js:3
$event.dispatch()
report.min.js:2826
n.event.add/r.handle()
jquery.min.js:3
.trigger()
jquery.min.js:4
.trigger/<()
jquery.min.js:4
.each()
jquery.min.js:2
n.prototype.each()
jquery.min.js:2
.trigger()
jquery.min.js:4
frappe.ui.form.Control<.refresh()
desk.min.js:3923
frappe.ui.form.Layout<.attach_doc_and_docfields()
desk.min.js:3377
frappe.ui.form.Layout<.refresh()
desk.min.js:3300
_f.Frm.prototype.refresh_fields()
form.min.js:656
_f.Frm.prototype.render_form()
form.min.js:619
_f.Frm.prototype.setnewdoc/<()
form.min.js:706
frappe.ui.form.ScriptManager<.trigger/<()
form.min.js:2614
.map()
jquery.min.js:2
frappe.ui.form.ScriptManager<.trigger()
form.min.js:2614
_f.Frm.prototype.setnewdoc()
form.min.js:703
_f.Frm.prototype.refresh()
form.min.js:543
frappe.views.FormFactory<.load()
form.min.js:97
frappe.views.FormFactory<.show_doc/<()
form.min.js:91
.with_doc/<.callback()
desk.min.js:5972
frappe.call/callback()
desk.min.js:1307
frappe.request.call/statusCode200
desk.min.js:1332
frappe.request.call/<()
desk.min.js:1422
n.Callbacks/i()
jquery.min.js:2
n.Callbacks/j.fireWith()
jquery.min.js:2
z()
jquery.min.js:4
.send/c/<()
jquery.min.js:4
[Learn More]form.min.js:3284:28

Hi @brillarescience

Did you make any local changes in grid.js file?

No,

I have confirmed with development team. They have not changed anything in grid.js.

Should they replace with updated file or new one?

Thanks