[FIX] hr_expense: display analytic account on report

Order of attributes matter in QWeb and due to unexpected evaluation order
<span t-field t-fi /> will not works while <span t-if t-field /> do.
Since v8, the ORM will no longer crash to resolve foo.bar.name if bar is not
defined. The t-if clause is then not necessary and can be simply remove instead
of inverting the order of clauses.
This commit is contained in:
Romain Deheele 2015-03-03 17:44:38 +01:00 committed by Martin Trigaux
parent 935141582f
commit 6626884255
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@
<td>
<span t-field="line.name"/>
<span t-field="line.description"/><br/>
<span t-field="line.analytic_account.complete_name" t-if="line.analytic_account"/>
<span t-field="line.analytic_account.complete_name"/>
</td>
<td style="text-center">
<span t-field="line.ref"/>