I have inherited the customer invoice report and would like to conditionally replace the field of the sales order number with a newly created field of a quotation number. The conditional part is already in the original report as
so it already replaces the words Order number with Quotation number depending on the doc state, but I also need to conditionally replace the "span t-field="doc.name" bit with "span t-field=doc.quotation_number" if the doc state is in quotation and I'm not sure how to correctly amend the code. Thanks in advance.