[FIX] l10n_in: invoice col length kept same

If there is less than 5 invoices lines, {5 - number of invoice line}
empty invoice line are added as padding.

But these line could have a different number of column than the content,
thus the style could differ slightly or more erroneously if there was
background color depending on column number such as on the boxed style
layout.

opw-1870625
closes #26317
This commit is contained in:
Nicolas Lempereur
2018-08-13 11:32:24 +02:00
parent 75630e3d69
commit 9b609842e3
+8 -1
View File
@@ -108,7 +108,14 @@
<td></td>
<td></td>
<td t-if="display_discount" groups="sale.group_discount_per_so_line"></td>
<td t-att-colspan="o.company_id.country_id.code == 'IN' and 5 or 1"></td>
<td t-if="len(o.tax_line_ids) > 0"></td>
<td></td>
<t t-if="o.company_id.country_id.code == 'IN'">
<td t-if="is_cgst"></td>
<td t-if="is_cgst"></td>
<td t-if="is_igst"></td>
<td t-if="is_cess"></td>
</t>
</tr>
</tbody>
</table>