V12: Sales quotation set lost throws error

Dear all,

I encountered the following error, when doing the following steps:

  • Create new quotation
    
  • Save and submit quotation
    
  • Immediately afterwards set as "Lost"
    

When clicking the “Set as Lost” button I get this error message:

Does anyone else encounter this problem?

An error log can be found at V12: Sales quotation set lost throws error · Issue #18707 · frappe/erpnext · GitHub