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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- Müşteri İlişkileri Yönetimi
- e-Commerce
- Muhasebe
- Envanter
- PoS
- Project
- MRP
Bu soru işaretlendi
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.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Üye Olİlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
---|---|---|---|---|
|
2
Eki 25
|
2711 | ||
|
1
Ağu 25
|
1067 | ||
|
1
Nis 25
|
1972 | ||
|
1
Tem 24
|
2350 | ||
|
1
May 24
|
5186 |