Skip to content

Commit

Permalink
Added fiscal code in report invoice document (OCA#623)
Browse files Browse the repository at this point in the history
Update __manifest__.py
  • Loading branch information
joezsweet authored and eLBati committed Oct 30, 2018
1 parent bb6e26b commit 151205f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
5 changes: 3 additions & 2 deletions l10n_it_fiscalcode/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@
'python': ['codicefiscale'],
},
'data': [
"security/ir.model.access.csv",
'data/res.city.it.code.csv',
'view/fiscalcode_view.xml',
'view/report_invoice_document.xml',
'wizard/compute_fc_view.xml',
'data/res.city.it.code.csv',
"security/ir.model.access.csv"
],
'installable': True
}
11 changes: 11 additions & 0 deletions l10n_it_fiscalcode/view/report_invoice_document.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<template id="print_invoice_inherit" inherit_id="account.report_invoice_document">
<xpath expr="//div[@t-if='o.partner_id.vat']" position="after">
<div t-if="o.partner_id.fiscalcode" class="mt16">
Fiscal code:
<span t-field="o.partner_id.fiscalcode"/>
</div>
</xpath>
</template>
</odoo>

0 comments on commit 151205f

Please sign in to comment.