[FIX] mrp_bom_location: location_name report display improvement

This commit is contained in:
hveficent
2019-09-27 15:56:45 +02:00
committed by davidborromeo
parent 8932579769
commit 4d16617f9e

View File

@@ -13,7 +13,7 @@
<template id="report_mrp_bom_line" inherit_id="mrp.report_mrp_bom_line"> <template id="report_mrp_bom_line" inherit_id="mrp.report_mrp_bom_line">
<xpath expr="//tr/td[last()]" position="before"> <xpath expr="//tr/td[last()]" position="before">
<td t-if="l['location_id']"> <td t-if="l.get('location_id', False)">
<span><a href="#" t-att-data-res-id="l['location_id'].id" t-att-data-model="'stock.location'" class="o_mrp_bom_action"><t t-esc="l['location_id'].complete_name"/></a></span> <span><a href="#" t-att-data-res-id="l['location_id'].id" t-att-data-model="'stock.location'" class="o_mrp_bom_action"><t t-esc="l['location_id'].complete_name"/></a></span>
</td> </td>
</xpath> </xpath>
@@ -24,9 +24,10 @@
<template id="report_mrp_bom_pdf_line" inherit_id="mrp.report_mrp_bom_pdf_line"> <template id="report_mrp_bom_pdf_line" inherit_id="mrp.report_mrp_bom_pdf_line">
<xpath expr="//tr" position="inside"> <xpath expr="//tr" position="inside">
<td> <td t-if="l.get('location_name', False)">
<span t-esc="l['location_name']"/> <span t-esc="l['location_name']"/>
</td> </td>
<td t-else=""/>
</xpath> </xpath>
</template> </template>
</odoo> </odoo>