[FIX] l10n_in: fix empty HSN on invoice report & missing HSN column
Reproduce this bug: - Create 2 companies: Indian and Belgian for example - Install accounting & l10n_in - Create an invoice & print it The `<td>` dedicated to the HSN is always present so there is a cosmetic issue for the not indian companies: the table is a *little* bit too large. This issue is caused by a missing conditional statement on the `<td>` who is present on the HSN `<th>`. OPW-2090663 closes odoo/odoo#39930 X-original-commit: 8d421c703796c0d47233ba0bb0318c829b2f0159 Signed-off-by: Jason Van Malder <jasonvanmalder@users.noreply.github.com>
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//t[@name='account_invoice_line_accountable']/td[1]" position="after">
|
||||
<td>
|
||||
<td t-if="o.company_id.country_id.code == 'IN'">
|
||||
<span t-if="line.product_id.l10n_in_hsn_code" t-field="line.product_id.l10n_in_hsn_code"></span>
|
||||
</td>
|
||||
</xpath>
|
||||
|
||||
Reference in New Issue
Block a user