ERPNext sales order

this is a sales order running with the help of a workflow but now it is not saving this is the error showing when i click on save

Did you added any condition in the workflow?

yes but after that it was working .Today morning it was not working , My senior changed the source code of Sales invoice yesterday