[IMP] account : new report 'duplicata' for an invoice

This commit is contained in:
Yannick Tivisse
2015-06-24 14:35:28 +02:00
parent beca8fb36d
commit 93bdbb7904
2 changed files with 27 additions and 0 deletions
+10
View File
@@ -13,5 +13,15 @@
attachment="(object.state in ('open','paid')) and ('INV'+(object.number or '').replace('/','')+'.pdf')"
/>
<report
id="account_invoice_action_report_duplicate"
model="account.invoice"
string="Duplicates"
report_type="qweb-pdf"
name="account.account_invoice_report_duplicate_main"
file="account.report_invoice_duplicate"
attachment_use="False"
/>
</data>
</openerp>
+17
View File
@@ -157,5 +157,22 @@
</t>
</t>
</template>
<template id="account_invoice_report_duplicate" inherit_id="account.report_invoice_document" primary="True">
<xpath expr="//h2" position="replace">
<h2>
<span>Duplicate</span>
<span t-field="o.number"/>
</h2>
</xpath>
</template>
<template id="account_invoice_report_duplicate_main">
<t t-call="report.html_container">
<t t-foreach="doc_ids" t-as="doc_id">
<t t-raw="translate_doc(doc_id, doc_model, 'partner_id.lang', 'account.account_invoice_report_duplicate')"/>
</t>
</t>
</template>
</data>
</openerp>