TypeError: Object of type WorkOrderItem is not JSON serializable

hello i have this error when i make a new work order. how can i fix this ?

Hi @zaid_haider,

Which ERPNext version do you use?

Can you share the screenshot and error log image? then the community will help you.

Thank You!

1 Like

Hi @zaid_haider,

Can you please tell, You are getting this error from erpnext file or you are trying to write your custom code. I think you are getting a doc and trying to print in that case this error will occured.

1 Like

I have solved it.
thank you so much for replying

I wrote my custom code and this happened. But i figured it out.
I am so grateful for your reply.