콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
766 화면
I want to add something to the footer of the report, but it only appears on the last page of the report generation results. I have tried using the OCA module:
https://apps.odoo.com/apps/modules/17.0/report_qweb_element_page_visibility, and add CSS to the element.
However, it had no effect at all, my element still appeared on every page. Do you have any references on how to use the details of the module or is there another way?

Note: my report uses a custom template from external layout
아바타
취소
베스트 답변

Hi,


Try the following method for adding the header and footer,

<!--Header-->
<div class="header">
<div class="row">
<span t-esc="o.name"/>
</div>
</div>
<!--Footer-->
<div class="footer o_standard_footer" style="position: relative;margin-top:140px !important;">
<div class="last-page">
<span t-esc="o.number"/>
</div>

</div> 


Hope it helps.

아바타
취소
베스트 답변

You should set 'last-page' as a class, not CSS style, as the module description says:

<t t-if="o._table=='account_invoice'">
    <div class="not-first-page">
        <span t-esc="o.number"/>
    </div>
</t>
<t t-if="o._table=='sale_order'">
    <div class="not-last-page">
        <span t-esc="o.name"/>
    </div>
</t>
아바타
취소
관련 게시물 답글 화면 활동
0
6월 24
17
1
4월 25
656
2
3월 25
773
4
11월 24
6457
2
9월 24
2383