Blank sections and TypeError when modifying Sales Order

I am trying to modify part of the Sales Order DocType in something based on ERPNext 3.6.1. Specifically, I'm trying to change a section for selecting a Project to link to to a table of Opportunity items. Any modification I make to the Sales Order DocType though seems to result in the New Sales Order page containing empty categories. I'm using Chrome, and in the JavaScript console I am also getting this error:

Uncaught TypeError: Cannot set property 'get_query' of undefined

You can see a screenshot of the issue and more of the stacktrace here: http://imgur.com/0xXHVv9

Any ideas on what's causing this and how I can resolve it? Thanks.



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/4ad9155e-ab1d-4a76-9d32-98c870908d32%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.