[IMP] account : new report 'duplicata' for an invoice
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user