[FIX] mrp: correct report name

Before this commit,
It was always displaying `BoM Structure & Cost` for BoM Structure and
BoM Structure & Cost report.

With this commit, we are displaying correct report name based on report type.

closes odoo/odoo#69595

X-original-commit: e47f7db5ead8719d76f5fe1afd451f0ce113864b
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
This commit is contained in:
Swapnesh Shah
2021-04-21 10:08:27 +00:00
committed by Swapnesh
parent 1d8b34760c
commit e710db21fd
@@ -5,7 +5,8 @@
<t t-if="data.get('components') or data.get('lines')">
<div class="row">
<div class="col-lg-12">
<h1>BoM Structure &amp; Cost</h1>
<h1 style="display:inline;">BoM Structure </h1>
<h1 style="display:inline;" t-if="data['report_structure'] != 'bom_structure'" class="o_mrp_prod_cost">&amp; Cost</h1>
<h3>
<a href="#" t-if="data['report_type'] == 'html'" t-att-data-res-id="data['product'].id" t-att-data-model="data['product']._name" class="o_mrp_bom_action">
<t t-esc="data['bom_prod_name']"/>