[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:
parent
935141582f
commit
6626884255
|
@ -44,7 +44,7 @@
|
||||||
<td>
|
<td>
|
||||||
<span t-field="line.name"/>
|
<span t-field="line.name"/>
|
||||||
<span t-field="line.description"/><br/>
|
<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>
|
||||||
<td style="text-center">
|
<td style="text-center">
|
||||||
<span t-field="line.ref"/>
|
<span t-field="line.ref"/>
|
||||||
|
|
Loading…
Reference in New Issue