[T5877][FIX] checks if picking_id is linked to a sale_id and has order lines...

Merged Javier Vescio requested to merge T5877 into 15.0-prod
Compare and
1 file
+ 1
1
Preferences
File browser
Compare changes
@@ -183,7 +183,7 @@
<td>
<span t-esc="line.product_uom.name" />
</td>
<t t-set="line_note" t-value="line.picking_id.sale_id.order_line[-1].name if line.picking_id.sale_id.order_line[-1].display_type == 'line_note' else ''"/>
<t t-set="line_note" t-value="line.picking_id.sale_id and line.picking_id.sale_id.order_line and line.picking_id.sale_id.order_line[-1].display_type == 'line_note' and line.picking_id.sale_id.order_line[-1].name or ''"/>
</tr>
<tr t-if="line_note">
<td class="product-description-column" colspan="3">