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 to create an inherited Qweb report without modifying the original

By
Andrew Marshall
on 8/30/16, 8:49 PM 225 views

I am creating a series of custom reports for our business and would like to use a common basic header and footer which most of the reports would use, but with the ability to change them slightly for different specific reports.

I have created a basic header and footer which work just fine, but when inheriting them to modify them for the specific reports the basic gets overridden and the changes appear on all reports.

Based on the answer to another question on this forum (https://www.odoo.com/forum/help-1/question/inheriting-a-view-without-overriding-the-original-view-solved-85762), I tried adding mode="primary" to the template tag:

<template id="special_footer_layout" inherit_id="base_reports.base_report_footer" priority="17" mode="primary">

But end up with receiving the following error upon upgrading my module:

    File "lxml.etree.pyx", line 3373, in lxml.etree._Validator.assert_ (src/lxml/lxml.etree.c:166352)
AssertionError: Element openerp has extra content: data, line 4


I am fairly new at this, and most of my experience is with OpenERP V6.1 Is it possible to do what I am asking?

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

1 follower(s)

Stats

Asked: 8/30/16, 8:49 PM
Seen: 225 times
Last updated: 8/30/16, 9:01 PM