Basically, when I generate the customer statements report, the name of the customer needs to have a prefix which if not written is a disrespect in my language. modifying the names of each customer to include the prefix is not suitable for us.
I want any of these two options:
make a custom field and make that field show right before the customer name in the forms.
generate a static prefix ("Mr. ") before the customer name
Ok I found it.
I added a custom field to the customers with name “prefix” then in
(Settings → Obsolete Features → Themes)
made a new theme and in line 12 where {{ recipient.name }} exists, added this before it
{% for field in custom_fields %}
{% if field.label == "prefix" %}
{{ field.text }}
{% endif %}
{% endfor %}
which I made with ChatGPT, he claims that the code cant be shorter.
This works in Customer Statements report, is there a way to make the Sales Invoice use this theme?