Hi,
Im using right now webkit_report engine and managed together with base_report_to_printer to install a printer. Now I defined a second report, that prints directly. The only problem I struggle right now is, that when I push this print invoice button then in addition to printing the invoice I download the invoice. So how can I tell openerp, that I dont want the download?
If someone could point me to the right module / line of code, then im pretty sure I can code a workaround.
Thats how it looks:
http://fs2.directupload.net/images/141223/54den9n4.jpg
I defined my second report like this:
<data>
<report
auto="False"
id="account_invoices"
model="account.invoice"
name="account.invoice2"
file="partnerdetails/report/account_invoice.mako"
string="Print Invoices"
attachment="(object.state in ('open','paid')) and ('INV'+(object.number or '').replace('/',''))"
attachment_use="1"
multi="True"
report_type="webkit"/>
</data>
<data noupdate="1">
<record id="account_invoices" model="ir.actions.report.xml">
<field name="webkit_header" ref="base_headers_webkit.base_reports_portrait_header"></field>
</record>
</data>
Thanks in advance and Merry Xmas!
Sascha