[FIX] hr_expense: Remove analytic distribution from printed expense reports
This commit addresses an issue introduced after the Analytic distributions changes in v17 where printing expense reports with cross-analytic distribution raises a traceback. Given that analytic distributions offer limited value on printed expense reports and considering that no other printed reports in Odoo currently display the analytic distribution, they have been removed. task-3722135 closes odoo/odoo#153569 Signed-off-by: Habib Ayob (ayh) <ayh@odoo.com>
This commit is contained in:
@@ -49,15 +49,7 @@
|
||||
<tr t-foreach="o.expense_line_ids" t-as="line">
|
||||
<td class="text-start"><span t-field="line.date"></span></td>
|
||||
<td t-att-class="'text-start' + (' o_overflow' if len(line.name) > 30 else '')">
|
||||
<span t-field="line.name">Flight Ticket</span><br/>
|
||||
<span>
|
||||
<t t-foreach="line.analytic_distribution" t-as="distribution">
|
||||
<span t-if="line.env['account.analytic.account'].browse(int(distribution)).exists()">
|
||||
<span t-out="line.env['account.analytic.account'].browse(int(distribution)).name">Analytic Account Name</span>:
|
||||
<span t-out="line.analytic_distribution.get(distribution)">50%</span>
|
||||
</span>
|
||||
</t>
|
||||
</span>
|
||||
<span t-field="line.name">Flight Ticket</span>
|
||||
</td>
|
||||
<td class="text-end"><span t-field="line.price_unit">$100.00</span></td>
|
||||
<td class="text-end"><span t-field="line.quantity">1</span></td>
|
||||
|
||||
Reference in New Issue
Block a user