Community mailing list archives

community@mail.odoo.com

Re: Qweb vs Webkit Report

by
Antony Lesuisse (al)
- 11/18/2014 09:24:06
On 11/18/2014 01:18 PM, Paul Catinean wrote:
> Since we are on the Qweb topic and we have experienced people in the thread I
> would like to settle a few curiosities:
>
> 1. How does one handle custom per-report css files (not adapting the general
> one) and include them into the qweb templates?

Per report: dont call external_layout, duplicate it and customize it then call 
your own layout.

> Related thread:
> https://github.com/odoo/odoo/pull/3412

The thread is about all layout he sould have extended minimal_layout and add 
it's style file just before the 

> 2. How does one show/hide content in the header/body/footer regarding the page
> or number of pages available.This information was readily available in webkit

Per report do like 1, for every report extend external_layout_footer and apply 
any change like removing the page number.

replace the  
    by nothing. > > On Tue, Nov 18, 2014 at 12:32 PM, Antony Lesuisse <al@openerp.com > <mailto:al@openerp.com>> wrote: > > 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 > > 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 > > > 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 <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 >