跳至内容
菜单
此问题已终结
1 回复
637 查看

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
2918
1
8月 25
1303
1
4月 25
2140
1
7月 24
2506
1
5月 24
5470