for each="party in records"
replace text:p="set_lang(party.lang)"
if test="party.addresses"
for each="line in party.addresses[0].full_address.split('\n')"
line
/for
/if
Date: format_date(datetime.date.today(), party.lang)
Subject:
Dear Madams and Sirs,
Best Regards,
user.signature
/for
if test="user.company and user.company.header"
for each="line in user.company.header_used.split('\n')"
line
/for
/if
user.company.rec_name if user.company else ''
if test="user.company and user.company.footer"
for each="line in user.company.footer_used.split('\n')"