Community mailing list archives

community@mail.odoo.com

Re: Qweb vs Webkit Report

by
Antony Lesuisse (al)
- 11/18/2014 05:31:11
The qweb report engine is acuatally a webkit report egine. Both module use 
industry standard HTML/CSS and wkhtmltopdf to generated a pdf version.

The only difference is that report_webkit uses jinja for dynamic expressions 
whereas report_qweb uses qweb. The main avantage of qweb syntax is that it is 
based on xml so you can easily apply the odoo xpath extension mecanism.

Also headers are not hardcoded any template can call any other template, 
headers are simply templates that are called by most of the templates.


On 11/18/2014 07:32 AM, OpenERP Master wrote:
> Hi,
> Thanks for the info. I was really hoping to see a custom module somebody wrote
> that demonstrates the implementation of it. I have already seen some of the
> documentation.
>
> I already had some reports from v7 that apparently no longer work because of
> the changes in the report_module. The module has changed significantly. After
> about 4 hours of playing around, I was able to get the module to work. I see
> the changes were committed over a year ago:
> https://code.launchpad.net/~openerp-dev/openobject-server/trunk-methport-thu/+merge/149591
>
> I didn't know there was a v7.1 addons. Anyway, I decided to stick with webkit
> module because I want to use HTML/CSS as its an industry standard for design
> and I could copy/paste my designs into other applications and it would work
> with little modification.
>
> There is a bug reported about the problem already:
> https://github.com/odoo/odoo/issues/2334 I have a fix for it
>
>
> Thanks!
>
>
> On Mon, Nov 17, 2014 at 7:08 PM, Stephen Mack <smack815@gmail.com
> <mailto:smack815@gmail.com>> wrote:
>
>     You can find some information in Odoo's new developer docs for v8:
>
>     https://www.odoo.com/documentation/8.0/howtos/web.html#the-qweb-template-engine
>     https://www.odoo.com/documentation/8.0/reference/qweb.html
>     https://www.odoo.com/documentation/8.0/reference/reports.html
>
>     And opendays talk: The v8 reporting engine (HTML/Qweb) – Simon Lejeune
>
>     http://www.youtube.com/watch?v=ij14T3asngo&t=8h27m20s
>
>     Regards,
>
>     --Stephen
>
>     On Mon, Nov 17, 2014 at 8:56 PM, OpenERP Master <openerpmaster@gmail.com
>     <mailto:openerpmaster@gmail.com>> wrote:
>
>         Hi,
>
>         I have been a big fan of the report_webkit module. I saw the
>         discussion here:
>         http://openerp-community.2306076.n4.nabble.com/Openerp-community-Could-oca-adopt-report-webkit-before-v8-td4645542.html
>
>
>         that it is going to be deprecated but still available.
>
>         I am interested in trying the new qweb templating engine to generate
>         PDF reports for picking documents. Could someone provide me a link to
>         a custom module someone wrote that demonstrates it's use? I assume
>         there is still a parser where I could add custom functions, and works
>         similarly to rml/mako templates?
>
>
>         Thanks
>
>         _______________________________________________
>         Mailing-List: https://www.odoo.com/groups/community-59
>         Post to: mailto:community@mail.odoo.com <mailto:community@mail.odoo.com>
>         Unsubscribe: https://www.odoo.com/groups?unsubscribe
>
>
>     _______________________________________________
>     Mailing-List: https://www.odoo.com/groups/community-59
>     Post to: mailto:community@mail.odoo.com <mailto:community@mail.odoo.com>
>     Unsubscribe: https://www.odoo.com/groups?unsubscribe
>
>
> _______________________________________________
> Mailing-List: https://www.odoo.com/groups/community-59
> Post to: mailto:community@mail.odoo.com
> Unsubscribe: https://www.odoo.com/groups?unsubscribe
>