[IMP] splitted the printing of the invoice into 2 reports (using same rml): print preview and final printing
bzr revid: qdp@jade-20090120115653-mmuuvkeqwa7tjxai
This commit is contained in:
@@ -15,9 +15,16 @@
|
||||
model="account.invoice"
|
||||
name="account.invoice"
|
||||
rml="account/report/invoice.rml"
|
||||
string="Invoices"
|
||||
string="Final Print"
|
||||
attachment="(object.state in ('open','paid')) and (time.strftime('%Y-%m-%d')+'-'+object.number)"
|
||||
attachment_use="1"/>
|
||||
<report
|
||||
auto="False"
|
||||
id="account_invoices_preview"
|
||||
model="account.invoice"
|
||||
name="account.invoice.preview"
|
||||
rml="account/report/invoice.rml"
|
||||
string="Print Preview"/>
|
||||
<report id="account_transfers" model="account.transfer" name="account.transfer" string="Transfers" xml="account/report/transfer.xml" xsl="account/report/transfer.xsl"/>
|
||||
<report auto="False" id="account_intracom" menu="False" model="account.move.line" name="account.intracom" string="IntraCom"/>
|
||||
|
||||
|
||||
@@ -36,3 +36,9 @@ report_sxw.report_sxw(
|
||||
parser=account_invoice
|
||||
)
|
||||
|
||||
report_sxw.report_sxw(
|
||||
'report.account.invoice.preview',
|
||||
'account.invoice',
|
||||
'addons/account/report/invoice.rml',
|
||||
parser=account_invoice
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user