diff options
| author | fw-bot <otis@odoo.com> | 2019-11-06 09:47:23 +0000 |
|---|---|---|
| committer | fw-bot <otis@odoo.com> | 2019-11-07 09:21:01 +0000 |
| commit | 293cc0eeaba8b9328470a15c32fb093cd05fa26a (patch) | |
| tree | 6b24d32f8c51eafe5660eca5c279bebcf21d48a1 | |
| parent | 6fcedce834bd204351bfc91da62a76618dd27f0a (diff) | |
[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>
| -rw-r--r-- | addons/l10n_in/views/report_invoice.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/l10n_in/views/report_invoice.xml b/addons/l10n_in/views/report_invoice.xml index 2cbdecdcac2..80a58ee145e 100644 --- a/addons/l10n_in/views/report_invoice.xml +++ b/addons/l10n_in/views/report_invoice.xml @@ -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> |
