which version and did you made any customizations ?
its the error from your custom script written for sales order doctype
If you have made a custom script, then do this
If you have used a
cur_frm.add_fetch then you have made a mistake there or forgot to specify a variable you wanted to fetch from a certain document. If you fix it it should be done.
ERPNext: v11.x.x-develop (63ebeb4) (develop)
Frappe Framework: v11.x.x-develop (ffcc3fc) (develop)
can i please explain this
How to resolve this
share your custom script
I think there also a probable case of trying to map a non-existant variable in some other doctype. I think both have same kind of problem, check this link
did you add any fetch_from in customize form of sales order ??