Skip to content

Commit

Permalink
[FIX] stock: Preserve delivery slip description format
Browse files Browse the repository at this point in the history
Steps to reproduce:
- Edit any product's 'Description for delivery orders' (inventory tab)
- Create a delivery for this product (or confirm sale order to create one automatically)
- Print delivery slip (Correct formatting)
- Validate delivery
- Print delivery slip once more (Description loses linebreaks)

This is only for looks, but it's a document the end user will see so there are concerns about it looking unprofessional.

This formatting error is due to us not being able to use a field element after remaking the order lines to group related products in python.

opw-4040127

closes odoo#174495

Signed-off-by: Adrien Widart (awt) <awt@odoo.com>
  • Loading branch information
Yoann-bary committed Jul 25, 2024
1 parent e144ddb commit a5e9820
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/stock/report/report_deliveryslip.xml
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@
<td>
<span t-esc="aggregated_lines[line]['name']"/>
<p t-if="aggregated_lines[line]['description']">
<span t-esc="aggregated_lines[line]['description']"/>
<span t-esc="aggregated_lines[line]['description']" t-options="{'widget': 'text'}"/>
</p>
</td>
<td class="text-center" name="move_line_aggregated_qty_ordered">
Expand Down

0 comments on commit a5e9820

Please sign in to comment.