Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How can you import the Webkit Header/Footer?

By
Ian Beardslee
on 8/20/13, 12:07 AM 798 views

I've installed the "report_webkit" and have found that the export/import process doesn't work as expected.

The issue I notice is that the formatting (newlines) are removed. In some cases this is 'ok' and I can live the mangled Header CSS. But when the webkit header and webkit header contain statements such as ..

 %if company.partner_id.vat:
    ${company.partner_id.country_id.name == 'United Kingdom' and '  VAT Number: ' or '  GST Number: '} ${company.partner_id.vat}
 %endif

.. things go wrong when the export condenses that into a 'single line'.

I have a work around that manually goes through and pastes the correctly formatted code into the fields, but that does is a manual process which is a bit annoying as we go through the repeated testing processes with the new header and footer as part of a custom modules.

Any thoughts on how to get that working 'properly'?

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 8/20/13, 12:07 AM
Seen: 798 times
Last updated: 3/16/15, 8:10 AM