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

How to develop dynamic font, size and alignment report in QWEB, I tried some way but can't get, when I set a value static it is work but dynamically its not work for example: I my report

  • <div style = "position:absolute;top:30mm;left:35mm;font-size:9px;">

  • <p>ABC It is acctable</p>

  • </div>


so I tried this values are got form one field and pass to the style parameter it is not getting.


<div style = "o.alias_name">

<p> Company</p>

</div>

Here o.alias_name i having this values position:absolute;top:30mm;left:35mm;font-size:9px; but i can't get a proper output, kindly suggest me a solution for this.

아바타
취소
베스트 답변

Hi sridhar

You should use t-att to set attributes like:

<div t-att-style="o.alias_name">

    <p> Company</p>

</div>

아바타
취소
작성자

Yes it is working fine thank You...

관련 게시물 답글 화면 활동
1
7월 25
1962
1
5월 25
2050
1
4월 25
2481
1
2월 25
1751
0
10월 24
1494