Community mailing list archives

community@mail.odoo.com

Re: Qweb vs Webkit Report

by
h.tamo
- 11/21/2014 05:15:41
Thank you very much Antony.
It was not so obvious did'nt it? Before, we have template of rml on each company so we could manage it easily i think.
Anyway, i understand the procedure and will do as you said, but i spent a lot of time searching how to do that. It could be in the official doc i think
Thanks aigain and sorry for my english

Regards,

2014-11-21 10:28 GMT+01:00 Antony Lesuisse <al@openerp.com>:
in external_layout use a t-if="o.company_id == 2" and call a different footer 
or header.

On 11/21/2014 09:19 AM, Harold Tamo wrote:
> HI,
>
> I'm in multi company mode and I want to display different headers per company.
> How can i manage that (custom header per company
>
> Thanks,
>
> 2014-11-19 0:27 GMT+01:00 Ben Olsen <ben.olsen@imsar.com
> <mailto:ben.olsen@imsar.com>>:
>
>     Looks like Stephen didn't include one other link, which is the one I found
>     most helpful (because it includes an actual example):
>     https://www.odoo.com/documentation/8.0/howtos/backend.html#reporting
>
>     Also, I found some reports in the account module which were useful for
>     reference. You can find the report items in:
>     addons/account/account_report.xml
>     And then the various report definitions in addons/account/views, such as:
>     addons/account/views/report_overdue.xml
>
>     Hopefully that's helpful. Once I saw those example I was able to create a
>     basic report fairly quickly.
>
>     Ben Olsen
>
>     On Tue, Nov 18, 2014 at 7:26 AM, Antony Lesuisse <al@openerp.com
>     <mailto:al@openerp.com>> wrote:
>
>         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
>              <mailto: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/wat
ch?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/gro
ups?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
>

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe