Faster way to create reports

130 views
Skip to first unread message

Javier Uribe

unread,
Oct 10, 2017, 9:32:00 AM10/10/17
to tryton
Hi, I'm Javi and I work with Tryton everyday. I have to implement a lot of reports and I find them very slow to develop so I was wondering if there was another faster way. It'd be amazing if I could develop in HTML and CSS using Genshi as well. This would make pretty easy to design the report.

Thank you.

Sergi Almacellas Abellana

unread,
Oct 10, 2017, 9:42:09 AM10/10/17
to try...@googlegroups.com
El 10/10/17 a les 15:26, Javier Uribe ha escrit:
> Hi, I'm Javi and I work with Tryton everyday. I have to implement a lot of reports and I find them very slow to develop so I was wondering if there was another faster way. It'd be amazing if I could develop in HTML and CSS using Genshi as well. This would make pretty easy to design the report.

If you are more comfortable with HTML and CSS, there is an issue [1] to
add support for weasyprint to convert the HTML to other formats. Any
help on implementing this will be appreciated.

[1] https://bugs.tryton.org/issue5964

--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

Cédric Krier

unread,
Oct 10, 2017, 10:05:06 AM10/10/17
to tryton
On 2017-10-10 06:26, Javier Uribe wrote:
> Hi, I'm Javi and I work with Tryton everyday. I have to implement a
> lot of reports and I find them very slow to develop

It will be interesting to know why do you find it slow?

> so I was wondering if there was another faster way. It'd be amazing if
> I could develop in HTML and CSS using Genshi as well.

HTML is supported, web_user and notification_email modules use it.
But why do you think it will be faster?

--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Javier Uribe

unread,
Oct 10, 2017, 10:15:05 AM10/10/17
to tryton
Because as I have to use .odt template firstable I have to worry about the design in a very improductive way: using the mouse to adjust the tables of the .odt. Secondable the placeholders are really slow to program as I have to double click to edit them and losing the ability to get highlights of the programming languague so in my opinion, I find a little unnatural to program in an .odt.

Cédric Krier

unread,
Oct 10, 2017, 10:40:15 AM10/10/17
to tryton
On 2017-10-10 07:11, Javier Uribe wrote:
> El martes, 10 de octubre de 2017, 16:05:06 (UTC+2), Cédric Krier escribió:
> > On 2017-10-10 06:26, Javier Uribe wrote:
> > > Hi, I'm Javi and I work with Tryton everyday. I have to implement a
> > > lot of reports and I find them very slow to develop
> >
> > It will be interesting to know why do you find it slow?
> >
> > > so I was wondering if there was another faster way. It'd be amazing if
> > > I could develop in HTML and CSS using Genshi as well.
> >
> > HTML is supported, web_user and notification_email modules use it.
> > But why do you think it will be faster?
>
> Because as I have to use .odt template firstable I have to worry about
> the design in a very improductive way: using the mouse to adjust the
> tables of the .odt.

Nobody forces you to use a WYSIWYG to edit odt. At the end it is plain
XML and in the 4.6 it can even by fodt.

> Secondable the placeholders are really slow to
> program as I have to double click to edit them and losing the ability
> to get highlights of the programming languague so in my opinion, I
> find a little unnatural to program in an .odt.

Idem.

But you should not forget that relatorio was designed to allow
easy customization from users. But this feature has a cost when you
create the initial template.
But feel free to make use HTML for your reports.

Cédric Krier

unread,
Oct 10, 2017, 10:50:06 AM10/10/17
to tryton
On 2017-10-10 16:39, Cédric Krier wrote:
> On 2017-10-10 07:11, Javier Uribe wrote:
> > Secondable the placeholders are really slow to
> > program as I have to double click to edit them and losing the ability
> > to get highlights of the programming languague so in my opinion, I
> > find a little unnatural to program in an .odt.
>
> Idem.

Forget to say that on LibreOffice, placeholder can be added with
ctrl+f2.

Javier Uribe

unread,
Oct 10, 2017, 11:15:06 AM10/10/17
to tryton
Thank you everybody for your answers. Maybe I'll try XML and HTML and see what works for me.

Jan Grasnick | ag kommunikation

unread,
Oct 10, 2017, 1:14:33 PM10/10/17
to try...@googlegroups.com
Am 10.10.2017 um 15:26 schrieb Javier Uribe:
> Hi, I'm Javi and I work with Tryton everyday. I have to implement a lot of reports and I find them very slow to develop so I was wondering if there was another faster way. It'd be amazing if I could develop in HTML and CSS using Genshi as well. This would make pretty easy to design the report.
>
> Thank you.
>
Take a look at

http://repos.gewinnmonitor.de/grasbauer_reports

this is a proof of concept and uses html and css for creating reports
and weasyprint for generating pdf. Feel free to optimize, share and
maintain it :)

Jan

Javier Uribe

unread,
Oct 11, 2017, 6:25:10 AM10/11/17
to tryton
Thank you very much Jan, I'll take a look!
Reply all
Reply to author
Forward
0 new messages