[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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user