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

hi, how can add a custom background for my qweb template?

i have that but show me empty, in this case, i only want to set background in the second page


<template id="report_template_xxx">

            <t t-call="web.html_container">

                <t t-foreach="docs" t-as="o">

                    <meta charset="UTF-8" />

                    <div class="page" t-attf-class="article o_report_layout_standard o_company_#{o.company.id}_layout {{  'o_report_layout_background' if o.company.layout_background in ['Geometric', 'Custom']  else  '' }}"  t-att-data-oe-model="o and o._name" t-att-data-oe-id="o and o.id" t-att-data-oe-lang="o and o.env.context.get('lang')">

                        <span>background</span>

                    </div>

                    <div class="page" st-att-style="'background-image: url(/xxxx/static/img/Imagen1.png); background-size: cover; background-repeat: no-repeat; background-position: center; page-break-before: always;'">

                        <span>background 2</span>

                    </div>

                </t>

            </t>

        </template>

아바타
취소
관련 게시물 답글 화면 활동
2
2월 25
2270
1
1월 19
9140
0
12월 24
1403
2
2월 25
1838
0
8월 24
2017