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:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- المشروع
- MRP
لقد تم الإبلاغ عن هذا السؤال
1
الرد
1634
أدوات العرض
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.
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيل| المنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
|---|---|---|---|---|
|
|
2
ديسمبر 25
|
1459 | ||
|
|
2
ديسمبر 25
|
449 | ||
|
|
3
ديسمبر 25
|
1592 | ||
|
|
0
ديسمبر 25
|
4 | ||
|
|
1
ديسمبر 25
|
1318 |
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!