콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
15987 화면

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?

아바타
취소
베스트 답변

Hello,

What you are looking for it primary="true" in the <template ...> </template> definition.

You can find out more about it here: \https://www.odoo.com/documentation/12.0/reference/data.html#reference-data-template

Fernando


아바타
취소
베스트 답변
Hello Andrew Marshall

I have done inherited Qweb report using below link

https://www.odoo.yenthevg.com/inheriting-and-modifying-qweb-reports/

Hope it will be help you.

Best Thanks,

Ankit H Gandhi.

아바타
취소
관련 게시물 답글 화면 활동
1
8월 23
1737
3
9월 19
5732
1
3월 19
6870
1
8월 16
3777
1
5월 16
3100