[FIX] mrp: see full name of 'report' option in BoM 'Structure & Cost' report

Before this commit, when we opened the report "Structure & Cost" of a Bill of
Materials of a product without any variant, the dropdown option selection
'report' had the current selection name cut. For instance, the selection
"BoM Structure & Cost" was displayed as "BoM Structure".

This was due to each option having a width determined by the bootstrap
classname `col-md-4`, independently on the number of options that are
available.

There are either 2 or 3 options at the top of this report, depending on whether
the product of the BoM has variants or not. When there are 3 options, there is
not problem. However, with 2 options (i.e., without variants), each option
available horizontal space is reduced, so that the 'report' option is shrunk,
which cuts the text selection as a result.

This commit fixes this problem when there are 2 options (= "no variant"),
so that the 'report' option uses more horizontal space.

Task-ID 1864490
Closes #25643
This commit is contained in:
Prakash Prajapati
2018-08-10 10:15:20 +02:00
committed by Alexandre Kühn
parent af35aea6b0
commit c69a6c6509
+1 -1
View File
@@ -25,7 +25,7 @@
</option>
</select>
</div>
<div class="form-group col-md-4">
<div t-attf-class="form-group #{is_variant_applied ? 'col-md-4' : 'col-md-8'}">
<label>Report:</label>
<select class="o_input o_mrp_bom_report_type">
<option t-att-data-type="'all'">BoM Structure &amp; Cost</option>