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:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
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.
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
2
thg 10 25
|
2712 | ||
|
1
thg 8 25
|
1068 | ||
|
1
thg 4 25
|
1973 | ||
|
1
thg 7 24
|
2352 | ||
|
1
thg 5 24
|
5189 |