How to Remove HSN summary at the bottom of invoice
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Comptabilité
- Inventaire
- PoS
- Projet
- MRP
Cette question a été signalée
1
Répondre
1637
Vues
How to Remove HSN summary at the bottom of invoice
If you Are using Odoo 18 Community Edition Then Follow This steps.
- Enable Developer Mode.
- Navigate to "Settings / Technical / User Interface / Views" page.
- Search for "hsn summary" as "View Architecture" just like showing in below image

- We found only one Result with "View Name" as "l10n_in_report_invoice_document_inherit" in filter and open this view.
- Scroll Down to the code in the "Architecture" tab and find the below code and comment out.
<t t-if="hsn_summary">
<div name="l10n_in_hsn_summary" class="mt-3" style="page-break-inside: avoid;">
<h3>HSN Summary</h3>
<table class="table table-sm table-borderless col-6">
<thead>
<th>HSN/SAC</th>
<th class="text-end">Quantity</th>
<th class="text-end">Rate %</th>
<th class="text-end">Taxable Value</th>
<th class="text-end" t-if="hsn_summary['has_gst']">SGST</th>
<th class="text-end" t-if="hsn_summary['has_gst']">CGST</th>
<th class="text-end" t-if="hsn_summary['has_igst']">IGST</th>
<th class="text-end" t-if="hsn_summary['has_cess']">CESS</th>
</thead>
<tr t-foreach="hsn_summary['items']" t-as="item">
<td t-esc="item['l10n_in_hsn_code']"/>
<td class="text-end">
<span t-esc="item['quantity']"/>
<span t-if="hsn_summary['display_uom']">(<t t-esc="item['uom_name']"/>)</span>
</td>
<td class="text-end" t-esc="item['rate']"/>
<td class="text-end">
<span t-esc="item['amount_untaxed']" t-options="{'widget': 'monetary', 'display_currency': o.currency_id}"/>
</td>
<td class="text-end" t-if="hsn_summary['has_gst']">
<span t-esc="item['tax_amount_sgst']" t-options="{'widget': 'monetary', 'display_currency': o.currency_id}"/>
</td>
<td class="text-end" t-if="hsn_summary['has_gst']">
<span t-esc="item['tax_amount_cgst']" t-options="{'widget': 'monetary', 'display_currency': o.currency_id}"/>
</td>
<td class="text-end" t-if="hsn_summary['has_igst']">
<span t-esc="item['tax_amount_igst']" t-options="{'widget': 'monetary', 'display_currency': o.currency_id}"/>
</td>
<td class="text-end" t-if="hsn_summary['has_cess']">
<span t-esc="item['tax_amount_cess']" t-options="{'widget': 'monetary', 'display_currency': o.currency_id}"/>
</td>
</tr>
</table>
</div>
</t>- Now Save the page and Check in the Invoice.
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
|
|
2
déc. 25
|
1466 | ||
|
|
2
déc. 25
|
453 | ||
|
|
3
déc. 25
|
1593 | ||
|
|
0
déc. 25
|
4 | ||
|
|
1
déc. 25
|
1319 |
This is great thanks , have a small modification to this request :
We have multiple currency billing - INR and USD
1. if the currency of invoice is INR (Indian rupee) would like to display this HSN table else not have it on invoice for any other currency
2. If the current is INR, our default currency is set to USD so we have a table that displays order value , taxes and total again in the equivalent USD (from the INR value)
Want to get rid of this for INR orders!