We have a custom print format for Credit Notes because we require that our original sales invoice against which the credit is being issued is printed. This of course can be done by choosing the Credit Note Against Sales Invoice element from the sidebar in the Print Format Builder.
However, we also need to print the Customer’s Purchase Order on the Sales Invoice that the credit note is being issued against.
I tried using the jinja tag {{ doc.return_against.po_no }} thinking that it would fetch the po_no value from the doc.return_against Sales Invoice but we get the following output: {{ no such element: unicode object[‘po’] }}.
Any ideas how this can be achieved? Thank you!