[FIX] delivery : set max-width of tracking # col

If the tracking number in the transfers is lengthy in terms of characters. The column will move to the left and take the space of other columns, resulting in a very bad layout. This is because Wkhtmltopdf does not handle the flexbox properly and and a max width had to be set.

1. Create a transfer with a delivery method.
2. Add a lot of characters in the tracking reference field.
3. Print the delivery slip.

Current Behaviour:
The tracking reference field does not respect the boundaries of other columns are take over their space.

Expected Behaviour:
The columns should keep a decent space to for the other column values.

OPW-3343067

closes odoo/odoo#130430

X-original-commit: 7cea2fc560f719827fc04be85ff9e7dc3a5586b3
Signed-off-by: Hamza Islam (hisl) <hisl@odoo.com>
This commit is contained in:
Hamza (hisl)
2023-08-21 12:38:53 +02:00
parent a395277fed
commit 5d2116e146
@@ -12,7 +12,7 @@
<span t-field="o.shipping_weight"/>
<span t-field="o.weight_uom_name"/>
</div>
<div t-if="o.carrier_tracking_ref" class="col-auto">
<div t-if="o.carrier_tracking_ref" class="col-auto" style="max-width:30%;">
<strong>Tracking Number:</strong>
<p t-field="o.carrier_tracking_ref"/>
</div>