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:

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



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 or and send only the URL via email
  3. For sending images, use 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…

    To view this discussion on the web visit

    For more options, visit