diff options
| author | Swapnesh Shah <swapneshshah111@gmail.com> | 2021-03-30 20:04:19 +0000 |
|---|---|---|
| committer | Swapnesh <swapneshshah111@gmail.com> | 2021-04-20 16:41:22 +0000 |
| commit | e47f7db5ead8719d76f5fe1afd451f0ce113864b (patch) | |
| tree | 77b21ae9beb9478fd6a4157287d707c718209dc5 | |
| parent | 45a2a36f3f0a94731d44de201f0cd3d88f50b2b3 (diff) | |
[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#68564
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
| -rw-r--r-- | addons/mrp/report/mrp_report_bom_structure.xml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/mrp/report/mrp_report_bom_structure.xml b/addons/mrp/report/mrp_report_bom_structure.xml index fa56474222a..2896392430f 100644 --- a/addons/mrp/report/mrp_report_bom_structure.xml +++ b/addons/mrp/report/mrp_report_bom_structure.xml @@ -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 & 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">& 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']"/> |
