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

Any solutions on how to increase the width of a column on odoo quotation PDF? Example: V Cables under Make column is printing on 2 lines. I want it to be printed on the same line. 

아바타
취소
베스트 답변

Hi,

In Odoo, the quotation and sales order PDF layout is controlled by the report_saleorder_document QWeb template.

In your custom module (or via Studio XML edit), find or inherit:

<template id="report_saleorder_document" inherit_id="sale.report_saleorder_document">

You can directly apply width and nowrap styling to the MAKE column.

<xpath expr="//table[@class='table table-sm o_main_table']/thead/tr/th[2]" position="attributes">

    <attribute name="style">width: 120px; white-space: nowrap;</attribute>

</xpath>


<xpath expr="//table[@class='table table-sm o_main_table']/tbody/tr/td[2]" position="attributes">

    <attribute name="style">width: 120px; white-space: nowrap;</attribute>

</xpath>


Hope it helps.

아바타
취소
관련 게시물 답글 화면 활동
2
10월 25
2715
1
8월 25
1077
1
4월 25
1982
1
7월 24
2355
1
5월 24
5205