[FIX] l10n_in_sale: conditionnal hsn visibility
Don't show HSN value for sale.order not linked to this localization. Before this commit, if you have multi company with multi localization, you see this field whatever the current localization. It uses the same condition than other report: purchase/invoice/... closes odoo/odoo#160833 X-original-commit: e2a684018d7f92994aa5d30ded8f64703254f0fb Signed-off-by: Olivier Dony (odo) <odo@odoo.com> Signed-off-by: Jérémy Kersten <jke@odoo.com>
This commit is contained in:
@@ -3,7 +3,9 @@
|
||||
|
||||
<template id="gst_report_saleorder_document_inherit" inherit_id="sale.report_saleorder_document">
|
||||
<xpath expr="//span[@t-field='line.name']" position="after">
|
||||
<t t-if="line.product_id.l10n_in_hsn_code"><h6><strong class="ml16">HSN/SAC Code:</strong> <span t-field="line.product_id.l10n_in_hsn_code"/></h6></t>
|
||||
<t t-if="line.product_id.l10n_in_hsn_code and line.company_id.account_fiscal_country_id.code == 'IN'">
|
||||
<h6><strong class="ml16">HSN/SAC Code:</strong> <span t-field="line.product_id.l10n_in_hsn_code"/></h6>
|
||||
</t>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user