I have used this code to print comment on sales order document but after upgrading it’s not being work
{% set communications = frappe.get_all(‘Communication’, filters={‘reference_doctype’: ‘Sales Order’, ‘reference_name’: doc.name, ‘comment_type’: ‘Comment’}, fields=[‘communication_date’, ‘sender_full_name’, ‘content’]) %}
{% for comm in communications %}{% endfor %}
Customer Comment {{ comm.content }}