Community mailing list archives

community@mail.odoo.com

Re: Qweb vs Webkit Report

by
h.tamo
- 11/21/2014 03:12:45
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>:
Looks like Stephen didn't include one other link, which is the one I found most helpful (because it includes an actual example):

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> 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  

_______________________________________________
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