[FIX] stock: description delivery slip

Before this commit, the description of the move was displayed on the
Delivery Slip report, even if the description is exaclty the same as the
product name (which is the case by default).
Now, as it's somehow ugly to have the repetition, they will not display
the description if it's the same as the product name.

opw-2205325

closes odoo/odoo#46550

X-original-commit: e6ee4824a6e422960c648e9a1f684e56e6dabd89
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
This commit is contained in:
svs-odoo
2020-02-28 12:18:56 +00:00
parent 974736306f
commit a5ef8f2b8a
+2 -2
View File
@@ -44,7 +44,7 @@
<tr t-foreach="lines" t-as="move">
<td>
<span t-field="move.product_id"/>
<p>
<p t-if="move.description_picking != move.product_id.name">
<span t-field="move.description_picking"/>
</p>
</td>
@@ -70,7 +70,7 @@
<tr t-foreach="o.move_line_ids" t-as="move_line">
<td>
<span t-field="move_line.product_id"/>
<p>
<p t-if="move_line.move_id.description_picking != move_line.product_id.name">
<span t-field="move_line.move_id.description_picking"/>
</p>
</td>