[IMP] l10n_in_account_voucher : improve code and solve traceback in template preview