diff --git a/addons/l10n_in/views/report_invoice.xml b/addons/l10n_in/views/report_invoice.xml index a0bb2a47d86e5ce469294e90e060d2beae025527..e3f5822329024443611a65738f2e87846014a23a 100644 --- a/addons/l10n_in/views/report_invoice.xml +++ b/addons/l10n_in/views/report_invoice.xml @@ -30,16 +30,19 @@ </td> </xpath> - <xpath expr="//h2" position="replace"> - <h2> - <span t-if="o.move_type == 'out_invoice' and o.state == 'posted'" t-field="o.journal_id.name"/> - <span t-if="o.move_type == 'out_invoice' and o.state == 'draft'">Draft <span t-field="o.journal_id.name"/></span> - <span t-if="o.move_type == 'out_invoice' and o.state == 'cancel'">Cancelled <span t-field="o.journal_id.name"/></span> - <span t-if="o.move_type == 'out_refund'">Credit Note</span> - <span t-if="o.move_type == 'in_refund'">Vendor Credit Note</span> - <span t-if="o.move_type == 'in_invoice'">Vendor Bill</span> - <span t-field="o.name"/> - </h2> + <xpath expr="//h2" position="replace" > + <t t-if="o.company_id.account_fiscal_country_id.code == 'IN'"> + <h2> + <span t-if="o.move_type == 'out_invoice' and o.state == 'posted'" t-field="o.journal_id.name"/> + <span t-if="o.move_type == 'out_invoice' and o.state == 'draft'">Draft <span t-field="o.journal_id.name"/></span> + <span t-if="o.move_type == 'out_invoice' and o.state == 'cancel'">Cancelled <span t-field="o.journal_id.name"/></span> + <span t-if="o.move_type == 'out_refund'">Credit Note</span> + <span t-if="o.move_type == 'in_refund'">Vendor Credit Note</span> + <span t-if="o.move_type == 'in_invoice'">Vendor Bill</span> + <span t-field="o.name"/> + </h2> + </t> + <t t-else="">$0</t> </xpath> </template>