[FIX] mrp: display human readable lot
Display the readable value of lot name in the Production Order report. opw-2178868 closes odoo/odoo#43990 X-original-commit: 7e82b77a80fe70da45676fd87a458ffe9948e48d Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
This commit is contained in:
@@ -148,7 +148,7 @@
|
||||
<tr>
|
||||
<td class="text-center align-middle">
|
||||
<t t-if="move_line.lot_name or move_line.lot_id">
|
||||
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('Code128', move_line.lot_name, 600, 150)" style="width:100%;height:4rem" alt="Barcode"/>
|
||||
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s&humanreadable=1' % ('Code128', move_line.lot_name, 600, 150)" style="width:100%;height:4rem" alt="Barcode"/>
|
||||
<span t-esc="move_line.lot_name or move_line.lot_id.name"/>
|
||||
</t>
|
||||
<t t-else="">
|
||||
|
||||
Reference in New Issue
Block a user