Re: [tryton-dev] How to build and use plugins in the client
El viernes, 23 de febrero de 2018, 10:06:07 (UTC+1), Sergi Almacellas Abellana escribió: > El 22/02/18 a les 20:10, Eduardo Ruiz Rodriguez ha escrit: > > El viernes, 15 de diciembre de 2017, 15:39:08 (UTC+1), edbo@gmail.com > > escribió: > >> So what I did was: > >> 1. Create a new label-report with plain text as layout. The content of > >> that report is JSON-like, so when the report is created I get a > >> JSON-string. > > Hello, I'm stucked in that point. How did you get that report > > (text/json-like..)?. The only report type I can generate is odt/ods. What > > is the template format you applied for it? > Hi Eduardo, > > You can use the 'txt' template extension to generate a report from txt > format. Then you should upload the template file and declare using the > relatorio sintax as usual. It's the same as we use for email > notification templates [1], but using the txt template extension. Yes, it works, thank you very much. I was dealing with the extension field (instead of template extension). Regards, Eduardo -- You received this message because you are subscribed to the Google Groups "tryton-dev" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton-dev/79b60bc4-3397-4294-b4a1-9fddcda87680%40googlegroups.com.
Re: [tryton-dev] How to build and use plugins in the client
El 22/02/18 a les 20:10, Eduardo Ruiz Rodriguez ha escrit: > El viernes, 15 de diciembre de 2017, 15:39:08 (UTC+1), edbo@gmail.com > escribió: >> So what I did was: >> 1. Create a new label-report with plain text as layout. The content of that >> report is JSON-like, so when the report is created I get a JSON-string. > Hello, I'm stucked in that point. How did you get that report > (text/json-like..)?. The only report type I can generate is odt/ods. What is > the template format you applied for it? Hi Eduardo, You can use the 'txt' template extension to generate a report from txt format. Then you should upload the template file and declare using the relatorio sintax as usual. It's the same as we use for email notification templates [1], but using the txt template extension. Hope it helps. [1] http://hg.tryton.org/modules/web_user/file/4153faf25a3e/email_validation.html -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- You received this message because you are subscribed to the Google Groups "tryton-dev" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton-dev/3716de40-350f-1d49-d692-381d6999cec8%40koolpi.com.
Re: [tryton-dev] How to build and use plugins in the client
El viernes, 15 de diciembre de 2017, 15:39:08 (UTC+1), edbo@gmail.com escribió: > So what I did was: > 1. Create a new label-report with plain text as layout. The content of that > report is JSON-like, so when the report is created I get a JSON-string. Hello, I'm stucked in that point. How did you get that report (text/json-like..)?. The only report type I can generate is odt/ods. What is the template format you applied for it? Eduardo -- You received this message because you are subscribed to the Google Groups "tryton-dev" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton-dev/a3cfbc99-33c5-480e-aa64-7b3c6405bae1%40googlegroups.com.