Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: Aeroo replacement and text2text reporting engine

by
Acsone SA/NV, Laurent Mignon
- 08/12/2016 09:37:52
Hi David,


It's difficult to know if qweb is better than py3o... In any case p3o is based on genshi and designed to be very efficient to process large datasets in terms of memory/proces consumption. I haven' investigated the internal implementation of qweb so I can't say if this one is less efficient than genshi for this specific case.

lmi

On Thu, Dec 8, 2016 at 9:08 AM, David Beal <david.beal@akretion.com> wrote:
Hi all,

... the support for text2text reporting with py3o can be easily added to report_py3o ...

Ok, but then you make mandatory to depends py3o with no added value compared to qweb. Don't you think ?


Bonne journée

David BEAL - Akretion
Odoo Development / Integration

2016-12-07 22:53 GMT+01:00 Mignon, Laurent <laurent.mignon@acsone.eu>:
Alexis, 

IMO the support for text2text reporting with py3o can be easily added to report_py3o. Indeed, it's just a matter of providing the right templale[1] class to use in report_py3o. The py3o.template library provides this kind of functionality[2]. 

Regards,

lmi


On Wed, Dec 7, 2016 at 6:22 PM, Alexis de Lattre <alexis.delattre@akretion.com> wrote:
As you know, during the last OCA code sprint in Louvain la neuve, there was a workgroup to compare the 2 main libreoffice-based reporting engines (Aeroo and Py3o), py3o was selected and a PR has been created for the v9 and v10 branch to add report_py3o in OCA :

PR for v9 : https://github.com/OCA/reporting-engine/pull/73
PR for v10 : https://github.com/OCA/reporting-engine/pull/78

I already use report_py3o for my first deployment of Odoo 10 in production and it works fine. I still have many things to learn on the py3o reporting engine and there are still things to improve in report_py3o to be as good as aeroo on some specific features, but it's a very good start.

But there is stupid (but very useful) feature that I am missing from aeroo: text2text reporting. Aeroo has the ability to have text-based reports that use genshi as templating engine and outputs the text file in the encoding that is configured on the "ir.actions.report.xml" report. I use it very regularly to generate TXT or CSV reports.

Here is an example of such a module : https://github.com/akretion/dilicom/tree/8.0/purchase_dilicom_csv  It uses aeroo to create a CSV report of a purchase order ; this CSV file can be uploaded on Dilicom, the main editor-independant plateform to order books in France.
Advantage: easy to develop, 0 python code.

Do you know an equivalent module that supports txt <-> txt reports ? If not, I think it would be great to develop one in the OCA, don't you think ?

--
Alexis de Lattre
Akretion France - 35B rue Montgolfier - 69100 Villeurbanne - France
Mail : alexis.delattre@akretion.com

_______________________________________________
Mailing-List: http://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: http://odoo-community.org/groups?unsubscribe




--
Laurent Mignon
Senior software engineer

Tel: +352 20 21 10 20 32
Fax: +352 20 21 10 21
Email: laurent.mignon@acsone.eu

Acsone SA, Succursale de Luxembourg 
22, Zone Industrielle
​ ​
​| L-8287 Kehlen, Luxembourg
TVA LU24733605
​ | ​RCS B160400​

Acsone sa/nv
Boulevard de la Woluwe 56, b4  Woluwedal
​ | B-1200 Bruxelles - Brussel 
RPM Bruxelles 0835.207.216 RPR Brussel  



_______________________________________________
Mailing-List: http://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: http://odoo-community.org/groups?unsubscribe


_______________________________________________
Mailing-List: http://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: http://odoo-community.org/groups?unsubscribe




--
Laurent Mignon
Senior software engineer

Tel: +352 20 21 10 20 32
Fax: +352 20 21 10 21
Email: laurent.mignon@acsone.eu

Acsone SA, Succursale de Luxembourg 
22, Zone Industrielle
​ ​
​| L-8287 Kehlen, Luxembourg
TVA LU24733605
​ | ​RCS B160400​

Acsone sa/nv
Boulevard de la Woluwe 56, b4  Woluwedal
​ | B-1200 Bruxelles - Brussel 
RPM Bruxelles 0835.207.216 RPR Brussel  



Reference