[FIX] mrp: print selected quantity
When using the print unfolded button, it will print only 1 product and not the selected quantity on the report. Task: 1939278 closes odoo/odoo#32340 Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
This commit is contained in:
committed by
William Henrotin
parent
36b976ccee
commit
2843dcfaa0
@@ -220,7 +220,9 @@ class ReportBomStructure(models.AbstractModel):
|
||||
'prod_cost': bom_line['prod_cost'],
|
||||
'bom_cost': bom_line['total'],
|
||||
'level': bom_line['level'],
|
||||
'code': bom_line['code']
|
||||
'code': bom_line['code'],
|
||||
'child_bom': bom_line['child_bom'],
|
||||
'prod_id': bom_line['prod_id']
|
||||
})
|
||||
if bom_line['child_bom'] and (unfolded or bom_line['child_bom'] in child_bom_ids):
|
||||
line = self.env['mrp.bom.line'].browse(bom_line['line_id'])
|
||||
|
||||
@@ -185,7 +185,7 @@
|
||||
<div><t t-esc="l['name']"/></div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<td name="td_mrp_code">
|
||||
<div t-if="l.get('code')" t-esc="l['code']" />
|
||||
</td>
|
||||
<td class="text-right">
|
||||
|
||||
Reference in New Issue
Block a user