Sales Orders have title field set as literal '{customer_name}' instead of value for customer_name

ERPNext: v15.38.4
Frappe Framework: v15.44.2
India Compliance: v15.13.4 (version-15)

I have created a report that lists sales orders. I am seeing the literal value of ‘{customer_name}’ in the field tabSales Order.title instead of the actual name of the customer. I have connected directly to the mysql database and checked the value on the table too - it is saved as ‘{customer_name}’. I had to run UPDATE tabSales Order SET title=customer_name WHERE title='{customer_name}'; to fix the past records.

I have not done any customization on erpnext or the doctype.

Why are the Sales Orders being saved with title field values ‘{customer_name’}?

Because customer_name set a title.

So you can remove it and set it according.

Dear @NCP, can you pls clarify further? If i need the customer name, what is the correct value to be set in the ‘Title Field’? Why is the default value shown as customer_name?

If any script applied then remove it, you can set the title from the customize form.