Technical mailing list archives

technical@mail.odoo.com

Avatar

Re: Problems with custom HTML/TXT report

by
Luca Vercelli
- 29/08/2017 04:46:57
Everybody agree with this answer? There is no way to generate a TXT file?

Then, my other option is to print directly (from server to printer). It 
is possible to generate the qweb-html report on the server, so that I 
can then print it?

Thank you.

Luca



Il 26/07/2017 14:21, Jérôme Thériault ha scritto:
> It renders inside the web page probably because the type of your report
> is qweb-html:
>
> report_type="qweb-html"
>
> I don't know if you can generate TXT reports out of the box though.
>
> On 2017-07-26 06:15 AM, Luca Vercelli wrote:> Dear all, > > I am writing a custome invoice report intended for use 
> with dot-matrix > printers. > > The idea is to generate a TXT file, 
> then print it from client. > > The generated file seems good. The 
> problem is, this file is not > downloaded, it is rendered inside an 
> IFRAME. How can I turn this into a > download? > > > I attach a 
> screenshot and the XML with templates, I hope attachments are > 
> allowed in this mailing list. > > Regards, > > > Luca > > > > > --- > 
> Questa e-mail è stata controllata per individuare virus con Avast 
> antivirus. > https://www.avast.com/antivirus > > 
> _______________________________________________ > Mailing-List: 
> https://www.odoo.com/groups/community-framework-62 > Post to: 
> mailto:expert-framework@mail.odoo.com > Unsubscribe: 
> https://www.odoo.com/groups?unsubscribe >
>
> _______________________________________________
> Mailing-List: https://www.odoo.com/groups/community-framework-62
> Post to: mailto:expert-framework@mail.odoo.com
> Unsubscribe: https://www.odoo.com/groups?unsubscribe
>


---
Questa e-mail è stata controllata per individuare virus con Avast antivirus.
https://www.avast.com/antivirus

Reference