summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsvs-odoo <svs@odoo.com>2020-02-27 16:12:45 +0000
committersvs-odoo <svs@odoo.com>2020-02-28 12:18:56 +0000
commita5ef8f2b8a79b2d12dd38bcfdf70e50a7bd2ce32 (patch)
tree0cfabc90df957951c1bce22367d82fc7cee18387
parent974736306f1a3a9cd5d733efb37dc1dc8c2c112c (diff)
[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>
-rw-r--r--addons/stock/report/report_deliveryslip.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/stock/report/report_deliveryslip.xml b/addons/stock/report/report_deliveryslip.xml
index a573c462cf5..925fed297ee 100644
--- a/addons/stock/report/report_deliveryslip.xml
+++ b/addons/stock/report/report_deliveryslip.xml
@@ -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>