General Journal
for each="move in records"
Journal Entry: move.rec_name	Date: format_date(move.date, user.language)	if test="move.origin" Origin: getattr(move.origin, 'rec_name', '') /if	if test="move.state == 'posted'" Posted format_date(move.post_date, user.language) /if if test="move.state == 'draft'" Draft /if
move.description
Account			Debit	Credit
for each="line in move.lines"
line.account.rec_name if test="line.party" '[%s] %s' % (line.party.code, line.party.name) /if if test="line.description" line.description /if			format_currency(line.debit, user.language, company.currency)	format_currency(line.credit, user.language, company.currency)
/for
/for
Company: company.rec_name	General Journal	Print Date: format_date(datetime.date.today(), user.language) at datetime.datetime.now().strftime('%H:%M:%S')
User: user.rec_name	1/1