[FIX] l10n_it: fix missing note of fiscal position on invoice
Steps to reproduce: - Install Accounting - Create a fiscal position with a legal note - Create an invoice with the created fiscal position - Preview the invoice => The legal note from the fiscal position appears on the invoice as expected - Install l10n_it - Preview the invoice => The legal note from the fiscal position doesn't appear anymore Cause: The condition to display the legal note from the fiscal position is overridden by l10n_it module to only display it for Italian companies, which is not correct. Solution: Remove the condition about the Italian companies. By removing that condition, the inherited view becomes useless as the overridden condition is the same as the original one. The inherited view will have to be removed in master. opw-3709443 closes odoo/odoo#155072 X-original-commit: aa8646281885167698e9f8b3b549b2c4e17dc2cc Signed-off-by: Brice Bartoletti (bib) <bib@odoo.com> Signed-off-by: Anh Thao Pham (pta) <pta@odoo.com>
This commit is contained in:
@@ -1,15 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<!-- TODO: remove view in master -->
|
||||
<template id="report_invoice_document" inherit_id="account.report_invoice_document">
|
||||
<xpath expr="//p[@name='note']" position="replace">
|
||||
<p name="note">
|
||||
<t t-if="o.company_id.country_id.code == 'IT' and o.fiscal_position_id.note">
|
||||
<span t-field="o.fiscal_position_id.note"/>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<span/>
|
||||
</t>
|
||||
</p>
|
||||
</xpath>
|
||||
</template>
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user