← Back to team overview

openerp-community team mailing list archive

Re: report_webkit future

 

Xavier Morel is currently working on the technical documentation.

The first deliverable will be a "getting started with openerp developement" tutorial. It will introduce all v8 concepts: controllers, html-views (qweb), models, backend-views (form,list).

After he will work on the reference documentation, including the server side qweb reference (this will be based on js one https://doc.openerp.com/trunk/web/qweb/).

On 02/19/2014 02:00 PM, Ovnicraft wrote:



On Wed, Feb 19, 2014 at 6:49 AM, Antony Lesuisse <al@xxxxxxxxxxx
<mailto:al@xxxxxxxxxxx>> wrote:

    Yes i forgot to mention that the new report module natively support excel
    reports (or anything else, png, svg, odt...).

    For an excel report you should define a controller that output the file.
    For excel 97 you may use xlwt, for excel 2007 and above you could use qweb
    with the bloated office xml format xlsx


Good news for Qweb but please release documentation about report engine
everything will be easy for everybody.

Regards,

    .

    @http.route('/mymodule/report/__mymodel_excel97_report1/<str:__ids>',
    type='http', auth="user")
    def export_xls(self,ids):
         workbook = xlwt.Workbook()
         (...)
        response = request.make_response(None, headers=[('Content-Type',
    'application/vnd.ms-excel'), ('Content-Disposition', 'attachment;
    filename=table.xls;')])
        workbook.save(response.stream)
        return response

    Then you define a 'qweb-pdf' report (yes we need to rename this into
    'controller').

    We will add an example in the report module.


    On 02/19/2014 06:45 AM, Carlos Vásquez wrote:

        Antony,

        What about generating spreadsheets or text documents? Have you looked for
        something like wkhtmltopdf that is capable of generating a xls, doc,
        ods or
        odt from an html? Is it in your plans?

        This could be, I think, the missing feature to ensure the community is on
        board with this change.

        I really like the qweb report engine. You guys have done a great job.
        We will
        start migrating our main report set for the localization by the end of
        March.
        Do you have an idea of when will it be merged in trunk (more or less)?
        This
        can help to plan our work to prepare for v8.

        Regards,
        --
        PS: escribí este email desde mi teléfono, por favor disculpe la brevedad y
        cualquier error de escritura.

        Carlos Vásquez
        CTO · Director de Ingeniería

        carlos.vasquez@xxxxxxxxxxxxxxx <mailto:carlos.vasquez@xxxxxxxxxxxxxxx>
        <mailto:carlos.vasquez@__clearcorp.co.cr
        <mailto:carlos.vasquez@xxxxxxxxxxxxxxx>>

        CR: +(506) 4000 CORP (4000 2677)
        US: +1 (786) 472-4267 <tel:%2B1%20%28786%29%20472-4267>
        Cel: +(506) 8351 4484 <tel:%2B%28506%29%208351%204484>
        skype: crvasquez
        twitter: cvclearcorp

        300 m. Este de la Escuela
        Calle de Platanares
        11402 San Jerónimo, Moravia
        San José, Costa Rica

        http://www.clearcorp.co.cr


    _________________________________________________
    Mailing list: https://launchpad.net/~__openerp-community
    <https://launchpad.net/~openerp-community>
    Post to     : openerp-community@lists.__launchpad.net
    <mailto:openerp-community@xxxxxxxxxxxxxxxxxxx>
    Unsubscribe : https://launchpad.net/~__openerp-community
    <https://launchpad.net/~openerp-community>
    More help   : https://help.launchpad.net/__ListHelp
    <https://help.launchpad.net/ListHelp>




--
Cristian Salamea
@ovnicraft


Follow ups

References